Urgent.News

What's breaking now, across thousands of outlets.

Tech

How to Compress an Image to an Exact KB Size in the Browser (Free, No Upload)

Upload forms don't ask for "80% quality". They ask for "photo under 50KB". And every mainstream compressor hands you a quality slider and wishes you luck — compress, check size, adjust, repeat. There are three ways to hit an exact KB target. Here's all of them. Option 1: ImageMagick (one line) If you're on a machine with ImageMagick installed: magick input.jpg -define jpeg:extent=50KB output.jpg…

Three methods exist to compress an image to a specific file size in a web browser, without uploading the image to any server. Option 1 involves using the command-line tool ImageMagick. After installing ImageMagick, running a single command with the desired target file size in KB will generate the compressed image. Option 2 utilizes JavaScript running in the browser to perform a binary search for the optimal compression quality, adjusting both quality and dimensions until the exact target file size is achieved.

Option 3 involves using a dedicated web tool that performs the same binary search algorithm, allowing users to input a desired KB target and generate the compressed image without any server interaction. This in-browser approach is particularly useful for sensitive documents like passport photos, as no data is transmitted outside the user's device.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Unstick: One Tiny Action Instead of a Plan

This is a submission for the Hacktoberfest Weekend Challenge: Build for a Friend What I Built Unstick gives you one tiny action instead of a plan.

  • Unstick offers one tiny action instead of a full plan
  • Creator built tool after feeling overwhelmed by tasks
  • Three cards: short action, longer action, "not today"

StudyChamp

This is a submission for the Hacktoberfest Weekend Challenge: Build for a Friend What I Built StudyChamp: The Ultimate Study Companion I built this application for a friend who is currently a student…

  • StudyChamp integrates Pomodoro Timer, Task Manager, Flashcard System, and Quiz Builder.
  • Developed with vanilla HTML, CSS, JavaScript for lightweight, fast performance.
  • Open-source project democratizes access to powerful study tools via AI assistance.

Confluence exposure: 1.8 million fingerprint matches depend on which fingerprint you use

Confluence exposure: 1.8 million fingerprint matches depend on which fingerprint you use The wiki that holds the architecture A Confluence instance usually contains the material an attacker wants…

  • 1.8 million fingerprint matches found on Confluence instances
  • Query method affects number of matches significantly
  • Longer application string yields more accurate fingerprint

More from Sunday 4 October →