Jump to content

Convert png images to jpg


sw_double
 Share

Recommended Posts

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

  • Like 1
Link to comment
Share on other sites

  • 1 year later...
  • 6 years later...

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...