Skip to main content
CodingMarble

Everyday digital life

Compress PDF and Images for Email Without Losing Quality

Files are large mainly because of high-resolution images, and you can shrink them by lowering image dimensions, choosing a suitable format and quality, and exporting PDFs with reduced image resolution. When a file is still too big for email, share a link instead, and be careful about which online tools you upload private documents to.

By CodingMarble · Published · 4 min read

A smartphone showing a security lock icon
Photo: Dan Nelson on Unsplash

Why files are big

A digital photo is a grid of coloured dots called pixels, and every pixel needs data. A modern phone camera takes pictures that are thousands of pixels wide, far more than any email, document or web page needs to display. A photograph taken at full size can therefore weigh several megabytes, and a document containing a few of them grows quickly.

PDFs are big for related reasons. A scanned page is really a picture of a page, and a scan made at high resolution or in colour can be much larger than a text document. PDFs can also carry embedded fonts, extra versions of images, hidden layers, form data and old edit history. When someone says 'my PDF is huge', the first question is what it contains: text, photos, scans or all three.

What compression does: lossless and lossy

Compression makes a file smaller by storing the same information more efficiently. Lossless compression finds repeated patterns and writes them more compactly, and when you open the file you get back exactly what you started with. Zip archives and some image formats work this way. The saving is real but modest for photographs.

Lossy compression permanently throws away detail that people are unlikely to notice. JPEG is the familiar example: it simplifies fine colour variations, and the lower the quality setting, the more it removes. Compressing once at a moderate level is usually fine. Compressing the same picture repeatedly, saving it over and over, makes the damage build up, which is why you should always keep the original and make a smaller copy for sharing rather than overwriting.

Different image formats suit different content. Photographs generally do well as JPEG or a newer photo format. Screenshots, logos and drawings with flat colour and sharp edges often do better as PNG, which is lossless. Check which formats the recipient's software supports before choosing a newer one.

Sensible image sizes for email and web

Think about where the image will be displayed. On a phone or an ordinary monitor, an image rarely needs to be wider than the screen it appears on. A picture in an email body, viewed on a laptop, looks sharp at a width of a thousand or so pixels. A photo that will only be viewed on a phone does not need more than that either. If the recipient may print it at large size, keep a bigger version and send it by link.

Resizing the dimensions saves much more than lowering the quality slider, because the number of pixels falls with the square of the change. Halve the width and height and you keep only a quarter of the pixels. After resizing, set a quality that looks fine when you zoom in on a face or fine text, and stop there. For web pages, the same ideas apply, and a smaller image helps pages load faster, especially on mobile data.

Ways to shrink a PDF

Because images are the main cause, start there. Many programs that create PDFs let you choose reduced image resolution or a smaller quality preset when you export or print to PDF. Pick a setting designed for on-screen reading or email rather than for printing. Check the result: zoom in and make sure that the text is still sharp and the signatures or small print are legible.

  • Reduce image resolution and quality at export, if your word processor or scanner software offers the choice.
  • Rescan at a lower resolution, in black and white for text-only pages, instead of colour at high settings.
  • Remove unused content, such as extra pages, hidden layers, comments, attachments and old form data, if your PDF software supports it.
  • Crop or resize oversized images before inserting them in a document, instead of relying on the document to shrink them.
  • Split a long document into parts when the recipient only needs some pages.
  • Use a PDF optimisation or compression feature in a PDF reader or editor, and compare file sizes before and after.

Always keep the original file untouched, and save the reduced one under a new name such as the original name with the word small. That way you never lose the high-quality version, and you can always generate another reduced copy.

Practical tip: Before sending, open the compressed copy yourself, look at every page at normal size and zoom into any signature, stamp or table. Compression problems are easier to spot at your desk than in the recipient's reply.

Privacy when using online tools

Any website that offers to compress a file asks you to hand over that file. Some tools upload it to a server, process it there and let you download the result; others process it entirely inside your browser, so the file never leaves your device. The difference matters for a bank statement, a contract or an identity document. Read the tool's privacy statement, check whether it says files are deleted after processing, and prefer an offline option or a browser-only tool for anything private.

CodingMarble runs free browser-based PDF tools at lovepdf.codingmarble.com, which has 35 tools that process in the browser with no sign-up and no watermark, and image tools at loveimage.codingmarble.com for compressing, resizing, cropping and converting images, including in bulk. Whichever tool you choose, confirm the result opens correctly before you send it.

Need this built properly for your business?

CodingMarble is a remote studio in India that builds websites, apps and games on fixed packages with the scope written down before payment. Try the free tools we run, or start a project when you are ready.