Approve the Cookies
This website uses cookies to improve your user experience. By using this site, you agree to our use of cookies and our Privacy Policy.
OK
Forums  •   • New posts  •   • RTAT  •   • 'Best of'  •   • Gallery  •   • Gear
Guest
Forums  •   • New posts  •   • RTAT  •   • 'Best of'  •   • Gallery  •   • Gear
Register to forums    Log in

 
FORUMS Post Processing, Marketing & Presenting Photos RAW, Post Processing & Printing 
Thread started 10 Aug 2012 (Friday) 14:13
Search threadPrev/next
sponsored links (only for non-logged)

Resizing to Specific File Size

 
5ifty ­ mm
Member
Avatar
121 posts
Joined Aug 2012
Location: Seattle
     
Aug 10, 2012 14:13 |  #1

Hey guys,

In an effort to not violate the 1st rule of forums, I have spent the last several minutes searching to see if my question has already been answered. Unfortunately I did not find it.

What I want to do, is like the title says. I need to batch resize images to a specific file size. I do not want to have to set the longest side, or change that kind of thing. I will be doing this for thousands of images at a time, some vertical, some horizontal, many starting out at different file sizes.

So for example if I have 2,000 images that are all between 70-100mb and I need them all to be 50mb each to send out. Is there a program that can do this?

I know in PS you can do "Save for Web" but that limits you to I believe 2mb file size. I need high resolution images.

Also, if there is indeed a thread already created on this topic that I missed, please feel free to just guide me in that direction. I dont mind reading :)

Cheers,
Brian


Camera + Lens

  
  LOG IN TO REPLY
nathancarter
Cream of the Crop
5,474 posts
Gallery: 32 photos
Best ofs: 1
Likes: 609
Joined Dec 2010
     
Aug 10, 2012 14:26 |  #2

Lightroom will do this upon export, but I think it accomplishes the file size requirement by on-the-fly adjustment of the jpeg quality/compression level.

At my day job as a professional cubicle jockey, we occasionally use FastStone image resizer but that doesn't seem to have any file size option.


http://www.avidchick.c​om (external link) for business stuff
http://www.facebook.co​m/VictorVoyeur (external link) for fun stuff

  
  LOG IN TO REPLY
5ifty ­ mm
THREAD ­ STARTER
Member
Avatar
121 posts
Joined Aug 2012
Location: Seattle
     
Aug 10, 2012 14:51 as a reply to  @ nathancarter's post |  #3

Thanks for the feedback, I will checkout the Lightroom option


Camera + Lens

  
  LOG IN TO REPLY
Merlin_AZ
Senior Member
Avatar
872 posts
Likes: 17
Joined Mar 2010
     
Aug 10, 2012 14:59 |  #4

The image processor in Photoshop should be able to do it.
File > Scripts > Image Processor...




  
  LOG IN TO REPLY
Wilt
Reader's Digest Condensed version of War and Peace [POTN Vol 1]
Avatar
46,463 posts
Gallery: 1 photo
Likes: 4552
Joined Aug 2005
Location: Belmont, CA
     
Aug 10, 2012 15:04 |  #5

With Lightroom, the assumption is that you want it to Export JPG files from RAW, and you want LR to resize to certain pixel resolution dimensions (H x V). Another alternative, if you have JPG files already at some larger size (such as JPG direct from camera) is to use a program like Paintshop Pro, and have it execute a script on files, to Image Resize (to certain percentage or to certain pixel count) and Save the result in a specified location


You need to give me OK to edit your image and repost! Keep POTN alive and well with member support https://photography-on-the.net/forum/donate.p​hp
Canon dSLR system, Olympus OM 35mm system, Bronica ETRSi 645 system, Horseman LS 4x5 system, Metz flashes, Dynalite studio lighting, and too many accessories to mention

  
  LOG IN TO REPLY
Paul ­ MR
Member
63 posts
Likes: 2
Joined Nov 2010
     
Aug 10, 2012 15:08 |  #6

Having a jpeg at 50 meg does not make sense, do you mean a minimum of 50meg uncompressd?(size given in Photoshop), this is what a lot of places require, not the file size on HDD.




  
  LOG IN TO REPLY
5ifty ­ mm
THREAD ­ STARTER
Member
Avatar
121 posts
Joined Aug 2012
Location: Seattle
     
Aug 10, 2012 15:28 as a reply to  @ Paul MR's post |  #7

Normally I would agree, but it is for a stock photo agency. Many of the images are HDR (proper HDR) images of interiors etc. that are very high resolution to start with. When someone purchases an image, they need to have the highest resolution possible in all file types. Depending on licensing agreements they get a different resolution delivered to them.


Camera + Lens

  
  LOG IN TO REPLY
5ifty ­ mm
THREAD ­ STARTER
Member
Avatar
121 posts
Joined Aug 2012
Location: Seattle
     
Aug 10, 2012 15:30 as a reply to  @ Merlin_AZ's post |  #8

I dont see a way in image processor to set the desired file size.


Camera + Lens

  
  LOG IN TO REPLY
tzalman
Fatal attraction.
Avatar
13,497 posts
Likes: 213
Joined Apr 2005
Location: Gesher Haziv, Israel
     
Aug 10, 2012 16:44 |  #9

Lightroom will only set a maximum and even that will not be exact. If you specify a 500 KB max, you might get 432 KB, it all depends on how the compression goes.


Elie / אלי

  
  LOG IN TO REPLY
Paul ­ MR
Member
63 posts
Likes: 2
Joined Nov 2010
     
Aug 10, 2012 16:49 as a reply to  @ 5ifty mm's post |  #10

I still think you should check with the agency as I believe they are asking for the uncompressed size that shows in photoshop, this can be adjusted with a script IE:


if(documents.length) resizeToFiftyMeg();
function resizeToFiftyMeg(){
var SizeOfFile = 50; //This is the actual size required.
var current_units = preferences.rulerUnits​;
preferences.rulerUnits = Units.PIXELS;
var width_pixels = activeDocument.width;
var height_pixels = activeDocument.height;
var channel_count = activeDocument.channel​s.length;
var image_bytes = width_pixels * height_pixels;
var actual =((image_bytes/1024/10​24)*channel_count).toF​ixed(2);
if(actual >= SizeOfFile) return;
var final_size = ( 1024 * 1024 * SizeOfFile ) / channel_count;
var image_scale = Math.sqrt( final_size/ image_bytes );
var final_width = width_pixels * image_scale;
var final_height = height_pixels * image_scale;
var final_ppi = activeDocument.resolut​ion;
activeDocument.resizeI​mage( final_width, final_height, final_ppi, ResampleMethod.BICUBIC​SMOOTHER );
preferences.rulerUnits = current_units;
}



  
  LOG IN TO REPLY
sponsored links (only for non-logged)

1,610 views & 0 likes for this thread, 6 members have posted to it.
Resizing to Specific File Size
FORUMS Post Processing, Marketing & Presenting Photos RAW, Post Processing & Printing 
AAA
x 1600
y 1600

Jump to forum...   •  Rules   •  Forums   •  New posts   •  RTAT   •  'Best of'   •  Gallery   •  Gear   •  Reviews   •  Member list   •  Polls   •  Image rules   •  Search   •  Password reset   •  Home

Not a member yet?
Register to forums
Registered members may log in to forums and access all the features: full search, image upload, follow forums, own gear list and ratings, likes, more forums, private messaging, thread follow, notifications, own gallery, all settings, view hosted photos, own reviews, see more and do more... and all is free. Don't be a stranger - register now and start posting!


COOKIES DISCLAIMER: This website uses cookies to improve your user experience. By using this site, you agree to our use of cookies and to our privacy policy.
Privacy policy and cookie usage info.


POWERED BY AMASS forum software 2.58forum software
version 2.58 /
code and design
by Pekka Saarinen ©
for photography-on-the.net

Latest registered member is semonsters
926 guests, 117 members online
Simultaneous users record so far is 15,144, that happened on Nov 22, 2018

Photography-on-the.net Digital Photography Forums is the website for photographers and all who love great photos, camera and post processing techniques, gear talk, discussion and sharing. Professionals, hobbyists, newbies and those who don't even own a camera -- all are welcome regardless of skill, favourite brand, gear, gender or age. Registering and usage is free.