MadHatter Posted June 17, 2015 Share Posted June 17, 2015 It's just occurred to me that it would be nice to set the output format of images (when resizing etc). I've just had to upload a load of magazine covers that were sent to me as png files. Considering the magazine covers are fairly complex images then a jpeg would be a better format for these. My client will be handling the uploading once the site is live so I cannot control what format they upload the images as (without adding some rules to my fields). Being able to set the resized image format could potentially save on some bandwidth. Link to comment Share on other sites More sharing options...
horst Posted June 17, 2015 Share Posted June 17, 2015 Pageimage Manipulator supports this: $image = $page->images->first()->pimLoad("suffix")->setOutputformat("jpg")->save(); 3 Link to comment Share on other sites More sharing options...
MadHatter Posted June 18, 2015 Author Share Posted June 18, 2015 Oh wow, that's excellent. Thanks! 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