Giter Site home page Giter Site logo

Comments (5)

silvia-odwyer avatar silvia-odwyer commented on May 20, 2024 1

@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! 👍

from photon.

styfle avatar styfle commented on May 20, 2024 1

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 🎉

from photon.

silvia-odwyer avatar silvia-odwyer commented on May 20, 2024 1

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

from photon.

silvia-odwyer avatar silvia-odwyer commented on May 20, 2024

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! 😄

from photon.

styfle avatar styfle commented on May 20, 2024

@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.

from photon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.