Urgent.News

What's breaking now, across hundreds of outlets.

Tech

How to Reduce Image Size to 100KB Without Losing Quality

How to Reduce Image Size to 100KB Without Losing Quality The visa portal wants your photo under 100KB. Yours is 312KB. You drag the quality slider down to 70, export, and get 88KB, but your face looks like it was photographed through frosted glass. You nudge it back to 78, export again, and land on 104KB. The portal rejects it. An hour later you have seven versions and still no idea which slider…

To reduce image size to 100KB without losing quality, stop using the quality slider as the control and instead focus on the target file size. A target-size encoder searches for the highest quality that fits under the 100KB cap, achieving results much faster than the traditional slider method. The quality slider only controls how much detail the encoder discards, with no fixed relationship to file size.

For each photo, the same slider position can yield different file sizes. Target-size encoding treats quality as a search problem, incrementally adjusting quality until it finds the best quality that fits the size limit. Using a target-size compressor like SnapShrink, you can input the desired 100KB target, select the output format, and the tool will adjust the image accordingly to ensure it stays under the cap.

The 100KB cap is commonly used by various portals such as government sites, exams, and job applications, all setting limits between 20KB and 200KB. If the initial slider adjustments do not achieve the target size, the encoder may also downscale the image and search again. Tighter caps like 100KB are affected by the original file format - scanned PNGs are much larger than JPEGs, so changing the format may help.

If no amount of quality adjustment can reduce the size to 100KB without significant quality loss, prioritize reducing file size by resizing the image, cropping unnecessary borders, and switching to a more efficient format like WebP. Always check the final output at full zoom to ensure faces and text remain clear before uploading.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

Renaming a Database Column Without Downtime

My earlier posts kept saying "expand and contract" without ever showing it end to end. This one does. I'll rename users.fullname to users.display_name on a live PostgreSQL database, one safe step at a…

  • Add new column displayname with nullable type during migration
  • Dual-write old fullname and new displayname columns for data consistency
  • Drop old fullname column after verifying displayname consistency

Amazon product search as JSON: prices, ratings and sponsored flags in 20 lines of Python

Amazon's official Product Advertising API requires an approved Associates account and ongoing qualifying sales. If you are building a small price monitor, competitor tracker, or catalog lookup tool…

  • Amazon Product Advertising API provides structured JSON search results
  • POST request to /amazon/search endpoint with search term and API key
  • Retrieves product details like prices, ratings, and sponsored flags

How to Verify a Hosting Provider Before You Buy

Originally published on my blog — read it there with the full context, code and updates . Every hosting provider's homepage is a list of promises: "in business since 2005" , "guaranteed uptime"…

  • Examine domain age vs provider's claimed "since" date
  • Scrutinize Acceptable Use Policy (AUP) for prohibited activities
  • Conduct reputation check using third-party sources like Trustpilot

Invisible spaces and the #N/A they cause

Disclosure: This is the English edition of an explainer I originally made in Japanese. It was translated with AI assistance, then reviewed and edited. Every example below uses dummy data.

  • Invisible spaces cause VLOOKUP to return #N/A despite identical appearance
  • LEN function identifies hidden spaces by counting characters in cells
  • Full-width space can mimic regular space and disrupt lookups

More from Wednesday 25 November →