Getting a specific file size in mb

  • Thread starter Thread starter trent fields
  • Start date Start date
Status
Not open for further replies.
T

trent fields

Guest
I've just started using LR and so far so good. I've also started doing a little bit of freelance work and the person I shoot for wants the file size to be no larger than 1.5mb. How can I resize the images to get the file size down to what he wants? The actual image size (croping) doesn't matter so much. I shoot jpeg large (as requested) and get files around 2.8mb.
 
LR3 beta 2 can automatically adjust the JPEG quality setting to achieve a file size target. In LR2, you can do this with the LR2/Mogrify export plug-in.

Both work by adjusting JPEG compression. They won't adjust the pixel dimensions automatically.
 
Thanks Mark... I'll track down the plug in..

What I don't understand is why doesn't croping change the file size? If I have a 2.8mb image, crop it to get the picture I want why doesn't that change the file size as I now have a smaller image?
 
[quote author=trent fields link=topic=9618.msg65'14#msg65'14 date=1271848112]


What I don't understand is why doesn't croping change the file size? If I have a 2.8mb image, crop it to get the picture I want why doesn't that change the file size as I now have a smaller image?
[/quote]

I'm wondering if you have a basic misunderstanding of the way Lightroom works which could explain your confusion here. Lightroom is a non-destructive image editor, i.e. the original image is not changed when you apply changes (be they develop edits such as cropping, or other metadata updates such as keywords). These changes are stored in the catalog and are used by Lightroom to change your view of the image....so when you 'crop' an image all that happens is that Lightroom shows you what the cropped image would look like were you to make the change permanent. But you cannot 'save' the image to make such a change permanent, you need to export the image+changes, i.e. create a new file (in a variety of formats) which will have the changes applied.

In your situation, trying to 'downsize' a jpeg to a smaller jpeg in LR2.x, you can achieve this either by cropping and exporting the cropped image, or not cropping and simply select an appropriate jpeg 'quality' value in the export dialog, which would increase the jpeg compression to produce a smaller file. Whilst you can't actually specify a particular output file size I would have thought a few experiments would quickly tell you what quality value would be appropriate.

I hope the above helps, and sincere apologies if I have mis-understood your issue....
 
Thanks for the info TNG...
I kind of understand how lightroom works. Any changes I make in lightroom don't effect the orginal image, got that. Anything I do to an image in lightroom for the end result to be permanent I must export the image using lightroom, upload to a website, print etc... all must be done with lightroom. Got that, now thanks to you.

What I need to know is this. I have a 2.8mb image/file, crop the image. Is there a way to tell what file size of the corped image is or will be upon export? I want to keep the quality high as these images are for sale.
 
[quote author=trent fields link=topic=9618.msg65'3'#msg65'3' date=1271858774]
What I need to know is this. I have a 2.8mb image/file, crop the image. Is there a way to tell what file size of the corped image is or will be upon export? I want to keep the quality high as these images are for sale.
[/quote]

Mark Sirota answered this specific question above. This IS the answer. Otherwise, it will be guesswork as TNG explained.
 
As far as cropping for export goes, you *should* be seeing a decreased file size. Just make sure you're comparing apples to apples. Export the full size JPG, then crop out whatever, and reexport using the same JPG settings, and you should see a filesize decrease roughly proportional to the areal decrease of the image. There is some fussiness about noise compression, and self similarity within the image (that is, cropping out lots of blue sky or similar), but generally this should hold true.
 
[quote author=trent fields link=topic=9618.msg65'14#msg65'14 date=1271848112]
What I don't understand is why doesn't croping change the file size? If I have a 2.8mb image, crop it to get the picture I want why doesn't that change the file size as I now have a smaller image?[/quote]

Cropping, by itself, doesn't change the file size as TNG explained.

If you're cropping to the same aspect ratio but exporting to the same pixel dimensions, you won't see much change in file size. If you resize on export to a smaller dimension, you will see a smaller file.

In other words -- there are two ways to achieve a smaller file size -- increase JPEG compression (which reduces quality), or resize to a smaller pixel count.

My point was that the automated mechanisms both adjust JPEG compression. There is no automated way to adjust pixel count to achieve a target file size (that I know of, anyway).
 
Thanks for all the info. I installed the plug in that Mark suggested and it seems to be the answer I was looking for. TIme will tell.
 
Hey,

on a similar not, just why are the file sizes so enormous after I export my pictures from Lightroom? My original jpeg is about 3MB - after a few changes in LR the exported images (at 1''% jpeg quality) is suddenly between 6 and 9 MB big. Any ideas? Thanks!
 
bakgwei,

Welcome to the forums :)

There are two reasons which can contribute to this:

  • [li]Your camera made JPEG has a higher compression than 1''% quality in LR[/li]
    [li]You added much more detail in developing, which cannot be compressed well, e.g. by sharpening[/li]
Beat
 
[quote author=b_gossweiler link=topic=9618.msg7''45#msg7''45 date=127865686']
Your camera made JPEG has a higher compression than 1''% quality in LR [/quote]

For example, if your camera uses 7'% quality ("higher compression"), and you output at 1''% quality, your photo will get larger. Also note: the quality slider doesn't have a linear affect in image size.
 
This to me sounds likeanother reason never to use JPG's. All this compress to a file expand from a file and end up with more data than you started with is not good. I have worked purely in raw since 2''6, looking at maybe using DNG But what has been described above is the creation of pixels from nowhere (well not quite true but they must be best guesses :) )
 
[quote author=ukbrown link=topic=9618.msg7'121#msg7'121 date=1278757398]
This to me sounds likeanother reason never to use JPG's. All this compress to a file expand from a file and end up with more data than you started with is not good. I have worked purely in raw since 2''6, looking at maybe using DNG But what has been described above is the creation of pixels from nowhere (well not quite true but they must be best guesses :) )
[/quote]

When JPG is used properly, it fills a need. Most compression isn't noticeable to the human eye, unless you blow up the photo to a very large size, or you repeatedly save the JPG.
 
It's not compression when you end up with a larger file size than what you started with, is it?

If you read the thread you will see that the users file went from 3MB to 6 or 9MB. I cannot see how this can be a good thing. I agree that it might not be noticeable and jpg's have a place in digital photography but this is just one extra thing in the "should i shoot in raw debate" (if i have the option) that I had never even considered before.
 
[quote author=ukbrown link=topic=9618.msg7'132#msg7'132 date=1278761798]
It's not compression when you end up with a larger file size than what you started with, is it?

If you read the thread you will see that the users file went from 3MB to 6 or 9MB. I cannot see how this can be a good thing. I agree that it might not be noticeable and jpg's have a place in digital photography but this is just one extra thing in the "should i shoot in raw debate" (if i have the option) that I had never even considered before.
[/quote]

Saving a JPG is compression. The photo in the editor is a specific pixel size, say 3'''x2'''. When you save it at 1''%, the resulting photos is still 3'''x2''', but the JPG compression algorithm provides a file that is less than 3'''x2''' bytes. If you choose 1''% compression, the resulting file is closer to 3'''x2''' bytes than if you choose 7'% compression. Opening a saved JPG in the editor is the opposite of compression ... the JPG algorithm expands the image to a full 3'''x2''' pixels.

As I said, used properly, JPGs are a very appropriate tool, and there's no shortage of high quality photos that were shot as JPGs. While there are many valid reasons to choose Raw, I think this would be down near the bottom of the list; unless you are one of the people who haven't been using JPGs properly.
 
[quote author=dj_paige link=topic=9618.msg7'135#msg7'135 date=1278765'3']
... If you choose 1''% compression, the resulting file is closer to 3'''x2''' bytes than if you choose 7'% compression. ...
[/quote]

Just to avoid confusion (I know that you know, but others might get confused):

In LR, it's choosing 1''% quality or 7'% quality, which results in minimum compression or higher compression (not linear) respectively.

Beat
 
[quote author=b_gossweiler link=topic=9618.msg7'141#msg7'141 date=1278767525]
Just to avoid confusion (I know that you know, but others might get confused):

In LR, it's choosing 1''% quality or 7'% quality, which results in minimum compression or higher compression (not linear) respectively.

Beat
[/quote]

Yes, thanks, that is what I should have written.

Clearly, there can't be 1''% compression! Although, I do remember using photocopiers at work (you know, Xerox machines) that offered, as one of the options under reduction: 1''% reduction
 
[quote author=dj_paige link=topic=9618.msg7'142#msg7'142 date=1278767721]... Although, I do remember using photocopiers at work (you know, Xerox machines) that offered, as one of the options under reduction: 1''% reduction
[/quote]
Best way to save paper :)

Beat
 
Status
Not open for further replies.
Back
Top