Convert existing images from png to jpg

Comments

3 comments

  • Avatar
    Maor Gariv

    Hi,
    Sorry for the very late reply, we have noticed that this request was left unattended. I guess this is not relevant anymore but for future reference -

    Converting an image to another format doesn't change it's public_id. therefore you can convert by simply choosing the format you wish to convert to.

    For example,

    http://res.cloudinary.com/demo/image/upload/sample.jpg

    will convert the image sample to jpg.

    Hope it helps, Good luck:)

    0
    Comment actions Permalink
  • Avatar
    Like Estampa

    I also uploaded the images in png format instead of jpg.

    Converting to .jpg in the url will use my "transformations" which are limited

     

     

    0
    Comment actions Permalink
  • Avatar
    Stephen Doyle

    Hi,

    Yes, that's correct, transformations are counted when you upload an asset or create a new derived ('transformed') version of an existing asset including if the only change is that it was re-encoded in the specified format: https://cloudinary.com/documentation/transformation_counts

    If you uploaded files in PNG format and want to show them in a more efficient format, we recommend using our automatic format transformation for this because it will choose a format automatically based on the formats supported by the user's browser. If you need a specific format like JPG, changing the extension or adding `f_jpg` to the transformation options is the best way to do this.

    If you want to change uploaded files to JPG format before they're saved into your account, you can do this using an Incoming Transformation, including a transformation used by the Media Library Upload Widget (which can be set via the default upload presets)- this will also count as a transformations to cover the processing of the new JPG file to your account

    Regards,

    Stephen

    0
    Comment actions Permalink

Please sign in to leave a comment.