Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Which image formats are supported? #50

Closed
styfle opened this issue Oct 18, 2020 · 5 comments
Closed

Which image formats are supported? #50

styfle opened this issue Oct 18, 2020 · 5 comments

Comments

@styfle
Copy link
Contributor

styfle commented Oct 18, 2020

Which image formats are supported?

Can photon convert from one image format to another?

@silvia-odwyer
Copy link
Owner

Hi @styfle
The following image formats are supported:

  1. PNG
  2. JPEG
  3. BMP
  4. ICO
  5. TIFF

Yes, the library automatically converts from one image format to the other. For example, if you load a PNG file and want to export it as a JPEG or another image format, the library allows for this. Hope that answers your question, and I'll leave this issue open until I update the guide/README to include the supported image formats.

If you have other questions or issues, don't hesitate to let me know, thanks so much! 😄

@styfle
Copy link
Contributor Author

styfle commented Oct 18, 2020

@silvia-odwyer

Great, thanks for the quick response!

I would be helpful to have docs to show converting from one format to another 👍

Another question for you: can photon change the quality of an image?
For example, sharp has quality option which is basically 1-100 percent, default 80.

@silvia-odwyer
Copy link
Owner

@styfle Currently there's no functionality to let photon change the quality of the image, however this is a feature that I'd like to add soon enough! Ideally, I'd like to have an output function for JPGs which takes a quality parameter. I'm planning to have this feature available in the next release of the library.

Thanks again for your questions, always great to get questions or thoughts on the library! 👍

@styfle
Copy link
Contributor Author

styfle commented Oct 19, 2020

Wonderful, thanks! 🥇

I created a couple feature requests (#51 and #52) so this issue can focus on documenting the existing file formats 👍

Keep up the great work 🎉

@silvia-odwyer
Copy link
Owner

I just added the supported image formats to the repo's documentation, including the guide and the README, so I'll close this issue ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants