SShortSingh.
Back to feed

Analysis reveals DEV.to's image proxy cropping and format conversion behavior

0
·1 views

A user discovered DEV.to's platform automatically processes uploaded cover images through a transform proxy. The proxy converts all images to WebP format and applies different cropping parameters depending on whether the image appears as a cover or inline. Cover images use a fixed crop that can discard content near the edges, while inline images scale down without cropping. The author measured specific dimension changes and compression ratios, finding the proxy reduces file sizes significantly but removes user control over cropping areas.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Analysis of 2026 app launch directories compares costs, queues, and requirements

A guide published on September 30 compares 21 platforms for launching new software applications. It details that most directories offer free listings, but these often require significant waiting periods, reciprocal links, or community votes. Paid options typically range from $10 to $40 for expedited listing, with a few services charging monthly subscription fees. The analysis advises developers to choose a platform based on their project's readiness, budget, and ability to meet specific community or technical requirements.

0
ProgrammingDEV Community ·

WordPress filter corrupts JavaScript regex by altering ampersand character

A developer discovered that a JavaScript tool embedded within a WordPress post functioned correctly locally but failed on the live site. The failure caused numeric digits to be replaced with the string 'undefined'. The issue was traced to WordPress's wptexturize filter converting a standalone ampersand (&) in a regex character class to its HTML entity (&). This altered the regex's matching behavior, causing it to incorrectly target digits 0, 3, and 8. The developer now recommends using Unicode escapes or external script files to avoid the filter.

0
ProgrammingDEV Community ·

Developer publishes customizable QR code API built with Rust

A developer has launched a customizable QR code generation API on RapidAPI. The project, built with Rust, allows extensive visual customization including gradients, shapes, and multiple output formats. It supports generating codes from various data types like URLs, Wi-Fi credentials, and contact information. The API also provides QR code decoding and validation functions. The developer created it to offer more flexibility than standard black-and-white QR generators.

0
ProgrammingDEV Community ·

Telegram Rejects iPhone Videos for Avatars; Bot Automates Conversion

Telegram's video avatar feature silently rejects videos recorded on iPhones. The issue stems from iPhones using the HEVC format by default, while Telegram only accepts H.264. A developer created a bot to automatically convert videos to meet Telegram's strict specifications. The required format is a square, 800x800 MP4 file under 2MB with no audio. The bot uses FFmpeg to crop, resize, and transcode videos into a compatible format.