Better HN
topnewbestaskshowjobs
Log inSign up

vic1102

1 karma · joined Sep 7, 2025 (1y ago) · 17 submissions

Web developer. Mostly building in Go and PHP.
Submissions

1.

AVIF updates: performance notes and when it wins(web.dev ↗)

2 points · by vic1102 · 1y ago · 1 comment

comment 1y ago · link · parent

PixTrim is a minimal, privacy-focused image processing tool.

It runs in the browser and handles common tasks like compression, resizing, format conversion (AVIF, WebP, HEIC, PNG, JPEG), as well as cropping, flipping, and rotating.

The backend is powered by Go and libvips.

Would love to hear feedback from HN.

comment 1y ago · link · parent

Thanks a lot! I really appreciate the detailed reply and the recommendation!

I wasn’t aware of `vipsgen`, but it looks great — full coverage and auto-generated bindings are exactly what I’ll be missing in `govips` if the project grows (I hope it will). I’ll definitely give it a try and see how it works.

Also, great tip on avoiding `autorot` by flipping crop coordinates — I hadn’t thought of that! Thanks again for your help!

comment 1y ago · link · parent

Thanks so much for the clarification and for the great work on libvips!

In my Go project I’m using the Golang library github.com/davidbyttow/govips/v2.

Images are loaded via `vips.NewImageFromFile()`, which internally calls `vips_image_new_from_file()`. However, `NewImageFromFile()` doesn't support any flags or options beyond the image path, so for JPEGs I manually call `AutoRotate()` before resizing, which wraps `vips_autorot()` — and that works well.

Thanks again!

comment 1y ago · link · parent

Great article! super helpful for someone like me who recently started building services in Go.

I especially appreciated the section on slog.Attr and the !BADKEY issue, it’s one of those little things that can go unnoticed until logs break in prod.

Thanks for putting this together!

comment 1y ago · link · parent

I ran into the same issue when working with image processing in Go using libvips. By default, libvips ignores EXIF orientation too, so I had to explicitly read and apply the orientation tag before doing any resize or crop. Otherwise users ended up with upside-down processed images from photos. Glad to see this is getting better in Rust.