titanium Posted August 3, 2013 Share Posted August 3, 2013 I searched in the forum and studied the cheat sheet, but I didn't find an answer to my question yet, therefore I'm asking Is it possible to upload a picture, let's say in png format, to resize it and to output in a different format, e. g. as a jpg? As far as I know, PW always outputs the image in the file format it was uploaded. It would be nice if I could give a parameter to the resize function, like this for example: $options = array( 'quality' => 90, 'format' => jpg ); $thumb = $image->resize(600, 400, $options)->url; Link to comment Share on other sites More sharing options...
pwired Posted August 3, 2013 Share Posted August 3, 2013 Lots of third party libraries, modules, apis, etc, out there. http://www.phmagick.org/examples/examples/convert http://www.phpclasses.org/package/2073-PHP-Convert-images-between-several-formats.html http://www.developphp.com/view.php?tid=1146 http://stackoverflow.com/questions/5060835/how-to-convert-all-images-to-jpg-format-in-php http://java.dzone.com/announcements/java-library-images-conversion 1 Link to comment Share on other sites More sharing options...
ryan Posted August 4, 2013 Share Posted August 4, 2013 PW doesn't currently have to option to convert an image from one type to another. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now