rbreu / beeref

BeeRef Reference Image Viewer
GNU General Public License v3.0
514 stars 39 forks source link

[feature] Resize large images to save disk space #34

Closed muhuk closed 10 months ago

muhuk commented 3 years ago

Having the ability to drag and drop images is awesome. Having the ability to scale images within the app is also awesome. Sometimes I scale down a larger image and scale up a smaller image within beeref. It would be great if there was a command that downscale the actual image data as well.

rbreu commented 3 years ago

One reason the file sizes get so big is that currently, the images get saved as PNG data inside the bee file. PNG is great for being lossless and supporting transparency, but it does result in bigger files than JPG. I'm planning on enhance the embedding mechanism (for example embed JPG images as JPG data, maybe let the user also opt in to embed everything as JPG), that should already make file sizes smaller.

Plus I'm planning on a mode where images loaded from hard drive can be linked to instead of embedded into the bee file, for cases where people mainly want to manage images they already have saved somewhere.

But I'll keep this in mind as well.

rbreu commented 10 months ago

Commit 7bef122 introduces the option to store the images as PNG, JPG, or a default "best guess". This reduces bee file sizes a lot, so I'll close this issue for now.

This change will go out in the next release.

muhuk commented 10 months ago

Based on dates, I'm guessing this is not part of 0.3.0 release :(