← Back to blog
#image#compression#web

How to Optimize Images for Websites, Forms, and Documents

DocsSeva

Resize before you compress

Large images are often oversized because their dimensions are much bigger than the final use. A phone photo can be 3000 pixels wide or more, while a profile picture, product thumbnail, or document image may only need 800 to 1200 pixels. Resizing first removes unnecessary pixels and usually gives a better result than compression alone.

Choose the right format

JPG is useful for photos because it keeps file sizes small. PNG is better for screenshots, logos, and graphics with sharp edges or transparency. WebP and AVIF can produce smaller files for websites, but some older systems may still ask for JPG or PNG. If a form gives a required format, follow it exactly.

Compress with a quality target

Image compression should be guided by the purpose of the file. A product photo or portfolio image should stay sharp. A simple upload proof, receipt, or form attachment can usually tolerate more compression. After compressing, zoom in and check important details such as faces, text, signatures, and edges.

Crop for focus

Cropping is not only about size; it removes distractions. A passport-style photo, profile image, or document scan should keep the subject centered and leave enough margin. For forms and official uploads, avoid cutting too close to the face, document border, or required background.

Build a repeatable workflow

  1. Crop the image if the subject needs better framing.
  2. Resize to the actual dimensions needed.
  3. Convert to the format required by the destination.
  4. Compress until the file fits the limit.
  5. Open the final image and check quality before uploading.

Following this order keeps images clean while still making them lighter and easier to upload.