Ugly Hedgehog - Photography Forum
Home Active Topics Newest Pictures Search Login Register
Main Photography Discussion
Compressing jpeg to a specific file size
Page <<first <prev 3 of 4 next>
Jul 15, 2023 11:26:07   #
Dragonophile
 
Thanks to all. I am satisfied that my questions and concerns have been answered.

Reply
Jul 15, 2023 11:28:29   #
kenArchi Loc: Seal Beach, CA
 
I do it in pse program.
I save as jpeg, select file size, save.
I select around 5 or 6.

Reply
Jul 15, 2023 20:27:04   #
frankraney Loc: Clovis, Ca.
 
Dragonophile wrote:
I want to compress my jpegs to 11mb in size. There is an online site that supposedly does this but it requires uploading and then downloading my jpegs. I do not want to do this. Anyone use a computer software program - free or purchased - that allows compression to a specific file size rather than by percentage or pixel dimensions? I am currently compressing by percentage but the resulting file sizes are unpredictable. I submit pictures to a web site that requires pictures be 12mb or less. When I use 98% on one 15mb picture, I might get a 10 mb file but on the next picture of 15mb it might compress to 7 mb.

My thinking, which may be faulty!, is that I would get best results with least compression required if I can specify a 11mb file size and let the program do the calculations on compression rates.

Thoughts and suggestions appreciated.
I want to compress my jpegs to 11mb in size. There... (show quote)


Did they want pixel resolution? I've not seen anyone that's specifies disk size.

Reply
 
 
Jul 15, 2023 23:59:21   #
lamiaceae Loc: San Luis Obispo County, CA
 
Wallen wrote:
We can designate the quality of Jpg compression, but the output files size can not be assigned because that depend on the content of the image itself.

Images with large areas of single colors will compress differently from an image with lots of color & contrasts.

If the system is to compress to a certain file size, then every image will have different qualities.
Therefore they opted to allow selection of quality and let the image content dictate the final file size.

Look at the sample below. Even just changing the brightness of the image changes the file size.
With color the size grows even bigger and the image with the trees because of more variations between pixels becomes the largest file size, even though all images are the same size and saved in the same jpg quality.

If you want to output a certain file size, you will need to keep playing with the quality slider and most probably only get an approximate and not the exact file size you want.
We can designate the quality of Jpg compression, b... (show quote)


This sounds reasonable to me but I would not worry about it so precisely.

Reply
Jul 16, 2023 00:23:14   #
lamiaceae Loc: San Luis Obispo County, CA
 
Dragonophile wrote:
I want to compress my jpegs to 11mb in size. There is an online site that supposedly does this but it requires uploading and then downloading my jpegs. I do not want to do this. Anyone use a computer software program - free or purchased - that allows compression to a specific file size rather than by percentage or pixel dimensions? I am currently compressing by percentage but the resulting file sizes are unpredictable. I submit pictures to a web site that requires pictures be 12mb or less. When I use 98% on one 15mb picture, I might get a 10 mb file but on the next picture of 15mb it might compress to 7 mb.

My thinking, which may be faulty!, is that I would get best results with least compression required if I can specify a 11mb file size and let the program do the calculations on compression rates.

Thoughts and suggestions appreciated.
I want to compress my jpegs to 11mb in size. There... (show quote)


I would not be so fussy. If you want <12mb don't worry if you get 11.9 or 10.2 mb, you would be hard pressed to tell the differenced in the images. 2.1 mb, yes you would probably find less IQ and/or a smaller physical size.

Reply
Jul 16, 2023 01:04:00   #
Dragonophile
 
frankraney wrote:
Did they want pixel resolution? I've not seen anyone that's specifies disk size.


Marinetraffic.com specifies all photos must comply with a 12mb file size limit. If I try to upload a larger file, it gets rejected. My Fujifilm X-T4 routinely gives me files larger than this. I know I can reduce the file size by camera setting but I definitely do not want to do this. I reduce file size copies for uploading by jpeg compression, but I keep my originals in original file sizes.

Reply
Jul 16, 2023 08:26:26   #
CHG_CANON Loc: the Windy City
 
Dragonophile wrote:
Marinetraffic.com specifies all photos must comply with a 12mb file size limit. If I try to upload a larger file, it gets rejected. My Fujifilm X-T4 routinely gives me files larger than this. I know I can reduce the file size by camera setting but I definitely do not want to do this. I reduce file size copies for uploading by jpeg compression, but I keep my originals in original file sizes.


Visiting the site and viewing some of the vessel images, you really should just focus on a pixel resolution in the repeatedly suggested 2048 to 3840px range, on the long side, and leave the JPEG quality at 100%. Worrying about a file-size in bytes is a waste of effort and time.

Reply
 
 
Jul 16, 2023 08:26:31   #
Wallen Loc: Middle Earth
 
lamiaceae wrote:
This sounds reasonable to me but I would not worry about it so precisely.


Likewise.
I'd worry more on the image quality first rather than the exact file size.
If there is a limit, then anything below that with a good quality should be OK.

Reply
Jul 16, 2023 08:50:40   #
DirtFarmer Loc: Escaped from the NYC area, back to MA
 
I would go so far as to say that image quality is NOT an issue here. Viewing vessels on the site gives me images that do not fill my screen. (I looked at a large but not extremely large sample set). I would estimate that any image quality above 70 would not present noticeable degradation.

Reply
Jul 16, 2023 09:50:06   #
profbowman Loc: Harrisonburg, VA, USA
 
DirtFarmer wrote:
My personal philosophy is: 'If it works, don't fix it'.

For me, Lightroom does the trick. It will strongly resist overwriting the original file. IrfanView can overwrite the file on save. Admittedly, there are sometimes good reasons to do that, but if it opens the door to accidental overwrites. I express my own opinion here. YMMV.

Of course backup is some hedge against that.


I have separate file folders for my photos coming out of the camera and folders in which I edit the files. The way I have IrfanView set up, the default folder for the next save is always the one in which it saved last. Since I never save in the folders where the original files are located, there is no chance that by default it would overwrite an original camera file.

But you are correct. We should use the program we are most familiar with if there are several programs that will do the same things. As a physicist who has worked with computer programming all my career, my interest has always been in how things work and how I can replicate it. So, this comes across into my photography as my desire to be a minimalist with regard tto the use of software. --Richard

Reply
Jul 16, 2023 11:00:11   #
Dragonophile
 
DirtFarmer wrote:
I would go so far as to say that image quality is NOT an issue here. Viewing vessels on the site gives me images that do not fill my screen. (I looked at a large but not extremely large sample set). I would estimate that any image quality above 70 would not present noticeable degradation.


I agree that viewing images on the site doesn't require a large file size. But as I clarified, people download pictures from this site to print in various ways. So best resolution for printing is also an issue.

As I have said, I am hearing that I should not have any concern if I can use file compression of 95-99% and get under the 12mb limit.

Reply
 
 
Jul 16, 2023 11:11:10   #
scsdesphotography Loc: Southeastern Michigan
 
kenArchi wrote:
I do it in pse program.
I save as jpeg, select file size, save.
I select around 5 or 6.


I use PSE also. I goto: file/process multiple files. For the level of compression that he said was required I would set Resolution to 300 and set jpeg to medium quality. See if that gets close to the mark. The actual file is different for every image, but they will be similar.

Reply
Jul 16, 2023 11:23:34   #
DirtFarmer Loc: Escaped from the NYC area, back to MA
 
Dragonophile wrote:
I agree that viewing images on the site doesn't require a large file size. But as I clarified, people download pictures from this site to print in various ways. So best resolution for printing is also an issue....


That is one reason I generally ignore advice to resize the photos for the web. However, I still think 95 is overkill for the quality factor, even for printing. My default is 80.

As always, they're your images so YMMV.

Reply
Jul 16, 2023 11:30:33   #
burkphoto Loc: High Point, NC
 
Dragonophile wrote:
I agree that viewing images on the site doesn't require a large file size. But as I clarified, people download pictures from this site to print in various ways. So best resolution for printing is also an issue.

As I have said, I am hearing that I should not have any concern if I can use file compression of 95-99% and get under the 12mb limit.


You’ll get great results with 90% or higher. You really are worrying about a trivial matter here. Just don’t edit and re-save a JPEG more than once or twice.

Reply
Jul 16, 2023 11:44:05   #
DirtFarmer Loc: Escaped from the NYC area, back to MA
 
burkphoto wrote:
... Just don’t edit and re-save a JPEG more than once or twice.


Even that is not as big a problem as everyone seems to think. As long as you use reasonable quality levels the changes in the image are incrementally small and eventually reach a saturation point where no change occurs. https://www.uglyhedgehog.com/user-page?upnum=3000

Reply
Page <<first <prev 3 of 4 next>
If you want to reply, then register here. Registration is free and your account is created instantly, so you can post right away.
Main Photography Discussion
UglyHedgehog.com - Forum
Copyright 2011-2024 Ugly Hedgehog, Inc.