Convert PNG to JPG
Turn PNG images into JPEG. Same size, at quality 90 unless asked otherwise.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop PNG files on the dialor turn it to pick what to do
A JPG that opens on any device.Same width and height as the PNG, saved at quality 90 unless you choose otherwise.
What you get
One JPG at the same width and height as your PNG. JPG is lossy, so the file is saved with compression at quality 90 by default. Set Quality from 1 to 100 to change how much detail the compression keeps.
Higher Quality keeps more detail and makes a bigger file. Above 90 the file grows quickly while the picture barely changes.
What changes
JPG has no transparency, so transparent areas of the PNG become white. Set Background to fill them with another color, written as #RRGGBB.
Strip metadata is an option. It removes EXIF and other metadata, such as the camera, the time, the GPS position and the color profile.
Size and orientation
Set Max width or Max height to shrink a large image while keeping its shape. Images smaller than the limit stay as they are, so nothing is enlarged. Resize PNG is there if you only want to change the size.
Turn on Grayscale to turn colors into shades of gray, which often makes the file smaller. Set Rotate to turn the result clockwise by 90, 180 or 270 degrees.
PNG and JPG.What each format is, and the options this conversion takes.
- 01 · background
Background
The color that fills transparent areas, for formats such as JPEG that cannot be transparent. Write it as #RRGGBB, such as #ffffff for white.
default #ffffff - 02 · grayscale
Grayscale
Turns colors into shades of gray, which often makes the file smaller.
- 03 · max_height
Max height (px)
Shrinks anything taller than this, keeping its shape. Anything shorter stays as it is, so nothing is ever enlarged.
1 to 20000 - 04 · max_width
Max width (px)
Shrinks anything wider than this, keeping its shape. Anything narrower stays as it is, so nothing is ever enlarged.
1 to 20000 - 05 · quality
Quality
How much detail lossy compression keeps. Higher keeps more detail and makes a bigger file. Above 90 the file grows quickly while the picture barely changes.
1 to 100 default 90 - 06 · rotate
Rotate
Turns the result clockwise by a quarter, a half or three quarters.
90 · 180 · 270 - 07 · strip
Strip metadata
Removes EXIF and other metadata, such as the camera, the time and the GPS position a photo was taken at, and the color profile. The file gets a little smaller and says less about where it came from.
The formats
PNG
Lossless raster images with an alpha channel. Screenshots, icons and graphics with sharp edges.
- Extensions
- .png
- MIME type
- image
/png - Kind
- Images
JPEG
Lossy photo compression that every device and browser opens. Small files, no transparency.
- Extensions
- .jpg .jpeg .jfif .jpe
- MIME type
- image
/jpeg - Kind
- Images
In your code.The same PNG to JPG conversion through the API, for your app or your agent.
$ cv convert photo.png photo.jpg$ cv convert photo.png photo.jpgQuestions.What people ask about PNG to JPG.
No. JPG cannot be transparent, so transparent areas become white. Set Background to use another color.
It has the same width and height unless you set Max width or Max height. Those only shrink images that are larger than the limit.
Quality 90 by default. You can set it anywhere from 1 to 100.
The conversion stops with input_corrupted when the file could not be parsed.