JPG to PDF guide
How to convert JPG to PDF without losing image quality
Image-to-PDF conversion is not identical for every source format. Ordinary JPEG files can often be embedded without JPEG re-encoding, while orientation correction and HEIC or HEIF conversion require additional image processing.

On this page
What happens to an ordinary JPEG
An ordinary JPG or JPEG that does not require orientation correction can usually be embedded into the PDF without JPEG re-encoding.
That means JPG to PDF does not automatically resize every JPEG or convert every JPEG through a screenshot.
The PDF page may still scale how large the image appears because A4, Letter, and Legal have fixed page dimensions.
Embedding behavior and page layout are therefore separate questions.
What happens when JPEG orientation must be corrected
Many camera images contain EXIF orientation metadata.
JPG to PDF recognizes JPEG orientation values that require the image to be displayed differently from its raw pixel order.
When orientation correction is necessary, the image is decoded, corrected through a browser canvas, and re-encoded as JPEG before it is embedded into the PDF.
That operation is not lossless.
The converter uses a high internal JPEG quality setting, but an absolute "no quality loss" promise would still be inaccurate.
Manual rotation added by JPG to PDF may also require image transformation rather than direct passthrough.
What happens to PNG images
PNG images use PDFKaka's PNG embedding path rather than being automatically converted to JPEG.
The PNG path supports alpha transparency.
This makes PNG useful when transparency or sharp UI-style graphics matter.
The PDF page layout can still scale the visible image to fit the selected page dimensions.
What happens to HEIC and HEIF images
Supported HEIC and HEIF still images use a different conversion path.
The browser decodes the source image, draws the result to a full-size canvas, uses a white background in that path, and converts the decoded image to JPEG before embedding it into the PDF.
Therefore HEIC and HEIF conversion should not be described as lossless.
A HEIF file using an unsupported codec may fail to decode.
How page size can affect apparent quality
A4, Letter, and Legal pages use fixed physical page sizes.
The source image is scaled so the complete image fits inside the available page area while preserving its aspect ratio.
If a small image is displayed very large, the image can appear soft even when the underlying conversion did not unnecessarily recompress it.
Fit page to image avoids a fixed paper size. The PDF page is created from the source image dimensions at 96 pixels per inch.
The best choice depends on whether the PDF is meant for printing on standard paper or simply preserving the natural image proportions.
Avoid repeated lossy conversions
Keep the original source image.
If a JPEG has already been repeatedly edited, exported, resized, or compressed, another conversion cannot restore detail that was previously lost.
A better workflow is:
- rotate or resize only when necessary;
- begin with the highest-quality practical source;
- inspect the result;
- create a smaller sharing copy separately if a strict upload limit requires it.
- create the PDF;
Do not repeatedly process an already degraded output when the source is still available.
How to check the generated PDF
Open the downloaded PDF and compare representative pages with the source images.
Inspect:
- small text;
- fine lines;
- signatures;
- receipts;
- screenshots;
- photographs;
- high-contrast edges.
Check the PDF at the size at which it will actually be viewed or printed.
A file-size number alone does not establish image quality.
FAQ
Does JPG to PDF always recompress JPEG images?
No. Ordinary JPEG files can usually be embedded without JPEG re-encoding. JPEGs that require orientation correction or image transformation may be re-encoded.
Is PNG converted to JPEG?
Not by the normal PNG path. PNG uses PNG embedding and can retain alpha transparency.
Is HEIC conversion lossless?
No. Supported HEIC and HEIF images are decoded and converted before PDF embedding, so the process should not be described as lossless.
Does choosing A4 reduce the original image resolution?
A4 controls the PDF page dimensions. The complete image is scaled to fit within the page while preserving aspect ratio. The visible result depends on the source pixel dimensions and how large the PDF is viewed or printed.