Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
About compressing digital images for storage
#7
(06-13-2022, 11:57 AM)rich2005 Wrote: If the jpeg from your phone camera is anything like mine then the compression setting is 95.  You can check by using  identify -verbose filename.jpg There is a compression value in the listing.

A bit about jpeg, it is a lossy format, even a 99 setting is compressed and lossy. The jpeg compression -> file size curve is not linear. Not much visible loss in quality down to about 80 but can be a good saving in file size Below 50 big drop off in quality, less saving in file size.

You can get an estimate of file size when exporting a jpeg. Enable the "Show preview in image window" 



PNG is a lossless format. Smaller compression = larger file size. 9 is default and best compression. It can govern how fast a large image loads. Smaller compression loads faster. 

There are other formats, TIFF for example, but you are starting with a jpeg, you might as well continue. You will not much space by packing jpeg/png files to an archive, they are already well compressed but 7zip is a good choice.

I can reduce the original .jpeg file size to almost half, from 2.0MB to 1.1MB by selecting the Export Quality to 80%.  What I'm most concerned are their future applications.  I can select the Export Quality 95% but there is not much difference in the file size compared to its original size.

Now I'm investing whether I can crop the digital images in batch, instead of cropping them one-by-one on GIMP.  Technically it is possible by running IM command, "resize".  But the area which I need to crop off is on the right-hand side of the image.  Please see attached photos.

A further thought
I can position the photo in the center below the smartphone, i.e. the space to be removed being on the left-hand and right-hand sides of equal size.

Other advice noted and thanks

Regards

(06-13-2022, 01:09 PM)PixLab Wrote: Indeed, like said @rich2005 if it's jpg, no need to convert to png, just stay jpg.

If it was me (in theory), I'll just put all original jpg (from your phone) in a directory, right click on the directory then select "create archive", (or "compress" on Ubuntu? OMG 1 week on MX Linux and I don't really remember what's on the right click on Ubuntu-MATE  Confused )
Then another directory for all the post-processed one, and same right click on it "create archive" or "compress", and store those 2 archives on an external drive.

In reality, I don't compress, I just store the full directories of raw/ photos and post processed jpg on external drive, because I can see the thumbnail, and in 10 years from now I know for a fact that I will not be happy about the jpg, then I will re-process some of the raw... or not Big Grin
I'll consider your advice, not compressing the original export files first, to see how much storage space will be occupied.  I have 4TB capacity on the storage drive (WD hard-drive)

I also have an external 4TB drive, connected to the PC via USB cable. I wonder whether needing compressing the files before transferring them to the external drive.  If without compression it will take longer time to transfer.

I'm running remote shooting, all operations controlled on Ubuntu 20.04 PC display.  After capturing each photo, I'll immediately download it to a folder on the PC, specially created, and rename its filename according to my way of labeling, not according to the filename allotted by the smartphone, together with comment added if any.

Regards


Attached Files Thumbnail(s)
   
Reply


Messages In This Thread
RE: About compressing digital images for storage - by Stephen Liu - 06-13-2022, 01:54 PM

Forum Jump: