Urgent.News

What's breaking now, across thousands of outlets.

Tech

Which GIF knobs change file size in a browser tool: colors, dithering, frame drop, scale

Every GIF tool shows you a different pile of sliders when a file is too big to send. I wanted to know which of them actually move the byte count. The sample is MORPH.gif, 675×599, 10 frames, 3,003,893 bytes, by Kowloonese on Wikimedia Commons under CC BY-SA 3.0. Everything below comes from this one clip, one machine (Apple M4, desktop Chromium), single runs, so read the numbers as "this clip" and…

The GIF file size in a browser tool can be affected by several factors, including colors, dithering, frame drop, scale, and quality settings. In a test using the MORPH.gif sample, changing the number of colors had the most significant impact on file size. Reducing the colors from 256 to 32 resulted in a size reduction of roughly 50%.

Dithering, a technique used to minimize color banding, made the file larger when enabled. At 32 colors, the file size increased by +36.9% when dithering was on compared to when it was off. The quality slider in the tool had no noticeable effect on the GIF file size in this test.

Other settings, such as frame drop and scale, also influenced file size. Dropping every other frame reduced the size by 47.0%, while scaling the dimensions down to 50% resulted in a 66.6% reduction in size. However, frame drop may not be ideal for animations since it can make the viewing experience less smooth. Scaling down the dimensions, on the other hand, can significantly reduce the file size without affecting the quality of the animation.

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

Your city chart can name a filter that never took effect

Your regional seller chart can carry a city label for a filter that never took effect. You're preparing the comparison, and DKI Jakarta looks perfectly respectable above a bar.

  • City chart reports a filter that never took effect
  • Discrepancy between city label and actual filter applied
  • Querying correct geography avoids misleading data

A Simple Spreadsheet-and-Script Workflow for Tracking Many Social Media Accounts

If you manage more than a handful of social media or ad accounts — for clients, for several brands, or for testing campaigns — you've probably hit the moment where "I'll remember it" stops working.

  • Spreadsheet serves as inventory of social media accounts
  • Python script generates daily report of accounts needing attention
  • Password manager stores sensitive account information

Vehiclerentalsystem

Building a Vehicle Rental Smart Contract Using Solidity A practical introduction to structs, mappings, modifiers, and booking management in Ethereum smart contracts.

  • Vehicle records stored in mapping with registration number as key
  • Users mapped by Ethereum wallet address with name, age, phone
  • Booking details managed by booking ID mapping with status enum

Our label service ran out of local ports at four hundred and seventy requests a second

On a Monday in October, the first day of a retailer's promotion, our label service began failing about one request in five from mid morning and kept doing it until the afternoon peak passed.

  • Retailer's label service faltered on Monday in October
  • Python app hit error [Errno 99] Cannot assign requested address
  • Fix involved sharing single requests Session across process

More from Monday 2 November →