sw_double Posted February 13, 2013 Share Posted February 13, 2013 Hey guys. Any change I can force size() method to convert png images to jpg? 1 Link to comment Share on other sites More sharing options...
JeffS Posted February 13, 2013 Share Posted February 13, 2013 That conversion function is not in the PW API (SEE http://processwire.com/apigen/class-ImageSizer.html), but PW does use GD. GD has functions that can do this. So you can accomplish what you want. See imagecreatefrompng http://php.net/manual/en/book.image.php Take a look at this http://stackoverflow.com/questions/1201798/use-php-to-convert-png-to-jpg-with-compression 1 Link to comment Share on other sites More sharing options...
horst Posted October 15, 2014 Share Posted October 15, 2014 Since February 2013 there were some changes with PW and thirdparty modules. Now you can use PageImageManipulator for this. 2 Link to comment Share on other sites More sharing options...
himanshu452001 Posted May 8, 2021 Share Posted May 8, 2021 (edited) PNG to JPG conversion is quite easy and you can do it easily online by PNG to JPG Converter Edited May 8, 2021 by Macrura External link removed. Not relevant to this topic, as uses external service. 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