Comments (5)
@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.
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.
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.
Hi @styfle
The following image formats are supported:
- PNG
- JPEG
- BMP
- ICO
- 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.
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)
- Speed issue with pure rust usage HOT 3
- Some filters are not working HOT 1
- How to use `open_image_from_bytes`? HOT 3
- Use without wasm HOT 4
- Watermark with opacity HOT 1
- Pixel Byte vs Bytes HOT 1
- web workers ? HOT 1
- Question: Any workflow to work with stereo image pairs?
- Can use photon with 16 bit grayscale images?
- Creating security.md HOT 1
- How to selectively convert alpha channel?
- WebP | AVIF HOT 1
- Add LUT / Windowing for medical images
- Heif
- Noise added on image rotation. HOT 1
- Image file size on disk HOT 2
- Resizing Options
- Initializing PhotonImage multiple times would run into OOM in Node v20 HOT 1
- malloc is not a function. (In 'malloc(arg.length * 1, 1)', 'malloc' is undefined)
- Why crop need a mutable reference to an image
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from photon.