Jump to content

Is there a way to output an image in another format (e. g. png to jpg)?


titanium
 Share

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...