Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Image::SaveToFile with .psd  (Read 2067 times)

0 Members and 1 Guest are viewing this topic.

wiley.a

  • Newbie
  • *
  • Posts: 2
    • View Profile
Image::SaveToFile with .psd
« on: August 31, 2011, 12:51:05 am »
Hello

I am currently trying to load a .psd file, modify it and then save it as a new file. I have it working with all of the other supported file types but for some reason I can only load .psd files. I know they are loading because I have them rendering to the window, but when I try and save it using SaveToFile, it fails. I have no idea why, its not my code as the other supported image formats work.

I'm using SFML 1.6 with the libraries recompiled for VS2010.

Thanks in advance  :)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Image::SaveToFile with .psd
« Reply #1 on: August 31, 2011, 08:16:43 am »
Saving PSD files is not supported by SFML.

By the way, why did you choose this format? There's no way to make good use of it with SFML (basically, only Photoshop can).
Laurent Gomila - SFML developer

wiley.a

  • Newbie
  • *
  • Posts: 2
    • View Profile
Image::SaveToFile with .psd
« Reply #2 on: August 31, 2011, 09:20:56 am »
Ah okay, thank you for your help. May I suggest making that clear on the features page. You mention supported image types, maybe just split this into two lines with .psd taken off of the saving one.

I have just written a little application that takes an image, modifies it and then saves the modified image as a new file. I was only trying to support .psd files because I thought "why not?" seen as they were listed as a supported image format.

Lo-X

  • Hero Member
  • *****
  • Posts: 618
    • View Profile
    • My personal website, with CV, portfolio and projects
Image::SaveToFile with .psd
« Reply #3 on: August 31, 2011, 11:23:16 am »
indeed.

In the documentation :
Quote
The supported image formats are bmp, png, tga and jpg.


On the features page :
Quote
Can load and save standard image formats : bmp, dds, jpg, png, tga, psd

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Image::SaveToFile with .psd
« Reply #4 on: August 31, 2011, 11:28:37 am »
Yes, this needs to be corrected.
Laurent Gomila - SFML developer