Sub topic 8
Image resolution and image color checks
This chapter assumes you can place images in a layout application, you know the difference between pixels and points, and you have your printer's specification sheet. The checks here are the ones that catch most image problems before a job reaches the press: effective resolution and image color space.
Why images get their own checks
A layout application stores an image at its native pixel size and draws it at whatever size you set on the page. The PDF keeps both facts. A preflight tool compares them and reports the result, so a file can pass every other check and still print a blurry photo.
Color has the same problem. A photo can look right on screen and still be tagged RGB when the printer expects CMYK. The preflight profile tests resolution and color space separately for every placed image.
Effective resolution
Effective resolution is the number of image pixels that land in each inch of the placed image. It is not the ppi value in the image's metadata.
effective ppi = pixel width ÷ placed width in inches
A 3000 px wide photo placed 10 inches wide has an effective resolution of 300 ppi. Scale the same frame to 20 inches wide and the effective resolution falls to 150 ppi. The file did not change, but the printed result is half as sharp.
Scaling inside the layout is the usual cause of low-resolution warnings. A designer places a small image, then enlarges it to fill a frame.
Typical targets
Your printer's specification overrides these figures. They are common starting points.
| Image type | Typical minimum | Typical target |
|---|---|---|
| Continuous-tone photo for offset print | 225 to 250 ppi | 300 ppi |
| Photo seen from far away (posters, banners) | 100 to 150 ppi | 150 ppi |
| Line art as 1-bit bitmap | 600 ppi | 1200 ppi |
| Screenshot or logo saved as a raster image | 300 ppi | Redraw as vector if possible |
Line art needs more resolution because a 1-bit image has no gray steps to smooth its edges. Every pixel is fully black or fully white, so low resolution shows up as stair-stepped edges.
Upsampling does not help
If a 150 ppi image is resampled to 300 ppi in Photoshop, the file gets four times as many pixels, but no new detail. The software only invents pixels between the existing ones. The result passes the ppi check and still looks soft. Fix low resolution by getting a better source image, or by reducing the placed size.
Downsampling and export settings
Very high resolution has a cost too. A 1200 ppi photo makes the PDF large and slows the printer's RIP (raster image processor, the software that converts pages to the dots the press prints). Most export presets downsample images above a threshold, for example "downsample to 300 ppi if above 450 ppi".
Two details matter:
- Bicubic downsampling gives smoother results than average or subsampling for photos.
- Downsampling is permanent in the exported PDF. Keep your originals and your layout file.
Checking resolution from the command line
The pdfimages tool from Poppler lists every placed image with its effective resolution, as the layout used it.
pdfimages -list job.pdfTypical output looks like this:
page num type width height color comp bpc enc interp object ID x-ppi y-ppi size ratio
1 0 image 3000 2000 rgb 3 8 jpeg no 12 0 312 312 1.2M 7.0%
1 1 image 600 400 rgb 3 8 jpeg no 15 0 96 96 85K 11.8%
2 2 image 2400 1600 cmyk 4 8 jpeg no 21 0 300 300 2.4M 16.7%Read the columns this way:
widthandheightare the pixel dimensions of the stored image.coloris the color space:rgb,cmyk,gray,icc,index,sepordevn.bpcis bits per component. Photos are normally 8.encis the compression:jpegis lossy,imageis usually lossless Flate (ZIP).x-ppiandy-ppiare the effective resolutions.
In this output, image 1 is 96 ppi and RGB, so it fails on both counts. Image 2 is correct.
You can filter the list with a short script. This one prints every placed image below a minimum resolution, or in RGB.
pdfimages -list job.pdf | awk -v min=300 '
NR > 2 && $3 == "image" && ($13 < min || $14 < min || $6 == "rgb") {
printf "page %s, image %s: %s ppi x %s ppi, color %s\n", $1, $2, $13, $14, $6
}'The script skips the two header lines with NR > 2. It tests only rows of type image, so soft masks and stencil masks are not reported as photos. Set min to your printer's minimum.
Note that pdfimages reports the image as placed. Vector artwork does not appear in the list, because it has no resolution.
Image color checks
The preflight profile checks each image's color space against the output you chose in the earlier chapter on output intents.
| Color space in the image | What it means for print |
|---|---|
| DeviceRGB | Device-dependent RGB. Not allowed in PDF/X-1a. Gets a warning or error in most profiles. |
| ICCBased RGB | RGB with an embedded profile. Allowed in PDF/X-3 and PDF/X-4 when an output intent exists. Printer may still ask for CMYK. |
| DeviceCMYK or ICCBased CMYK | Normal for offset print. |
| Gray | Prints with black ink only (K), which is what you want for black-and-white photos. |
| Indexed | Limited palette, common for GIF and some PNG. Often flagged for quality. |
| Separation or DeviceN | Spot color or multichannel images, such as duotones. Check that the spot names match the job. |
| Lab | Valid in PDF/X-3 and X-4, but unusual. Convert unless you have a reason. |
What the standards allow
PDF/X-1a requires every image to be CMYK, gray or spot. PDF/X-3 and PDF/X-4 also allow color-managed RGB and Lab, as long as the file has an output intent. Allowed does not mean wanted. Many printers want CMYK in the file, so conversion happens under your control rather than on their RIP.
Where conversion happens
You have two reasonable choices:
- Keep RGB images in the layout, and let the export convert them to the output intent's CMYK profile.
- Convert images to CMYK in your image editor before placing them.
The first choice keeps the layout flexible, and the second gives you control over each image. Do not mix both on the same image. Converting RGB to CMYK twice, with different profiles, shifts colors and clips saturated colors more than once.
When the export converts, the setting is usually "Convert to Destination" with "Preserve Numbers (Ignore Linked Profiles)" off. Check the manual for your application, because the wording differs.
Gray images and rich black
A gray image in DeviceGray prints with K only. That is usually what you want for a black-and-white photo, but it gives less depth than a CMYK image built with all four inks. If the design calls for deep blacks in a photo, ask your printer whether to convert the gray image to CMYK.
Compression and quality
The enc column shows how each image is compressed:
- JPEG is lossy. Use maximum or high quality settings for print. Repeated JPEG compression stacks artifacts.
- ZIP (Flate) is lossless. It makes larger files and suits line art, screenshots and flat-color graphics.
- JPEG2000 is supported in PDF/X-4, but not in X-1a or X-3. Few printers need it.
Do not apply JPEG compression to 1-bit line art. Use CCITT or ZIP.
A decision path
Common mistakes
- Trusting the 300 ppi value in the image editor, instead of the effective ppi after placement.
- Scaling an image up after resolution checks have been done.
- Converting images to CMYK with a generic profile, then converting again at export.
- Leaving a screenshot or logo as a low-resolution raster instead of using the vector original.
- Forgetting that transparency effects such as drop shadows are rasterized at the flattener resolution, which has its own setting.
Summary of the checks
For every job, confirm the following against the printer's specification:
- Every photo has an effective resolution at or above the stated minimum.
- Line art bitmaps meet the higher line art minimum.
- No image is DeviceRGB when the standard or printer forbids it.
- Images are converted to the output intent once.
- Compression settings match the image type.
Exercise
A printer requires 300 ppi minimum. You place a 2400 x 1800 px photo and it measures 10 inches wide in the layout. What is its effective resolution, and what are two ways to fix it if the layout needs the photo at that size?
Show answer
Effective resolution is 2400 px ÷ 10 in = 240 ppi, which is below 300. The two fixes are to replace the photo with a source that has at least 3000 px across, or to reduce the placed width to 8 inches (2400 ÷ 8 = 300 ppi). Upsampling the 2400 px image in an editor would pass the ppi check but add no detail, so it is not a real fix.
Exercise
Your pdfimages -list output shows one image with color rgb in a job that must be PDF/X-1a. What is the problem, and how should you fix it without converting the image twice?
Show answer
PDF/X-1a does not allow RGB images, so the file will fail validation. Fix it by converting the image once to the CMYK profile of your output intent, either in the image editor before placing it, or by having the export convert it to the destination. Do not do both, and re-run pdfimages -list on the exported PDF to confirm the color is now cmyk.