Reduce file dimension size by specified amount

we are trying to create an action or script to reduce images by .0625" from all 4 sides of artwork we receive from our customers. Anyone have any ideas?

Sorry about that, this should do it now.
NB: Resizing will not constrain proportions unless the artwork is SQUARE.
#target photoshop
var startRulerUnits = app.preferences.rulerUnits;
app.preferences.rulerUnits = Units.PIXELS;
var res = activeDocument.resolution;
var cropFactor = res/8;
var Width = activeDocument.width.value - cropFactor;
var Height = activeDocument.height.value - cropFactor;
resize(Width,Height);
app.preferences.rulerUnits = startRulerUnits;
function resize(Width,Height) {
var ad = new ActionDescriptor();
ad.putUnitDouble( app.charIDToTypeID('Wdth'), app.charIDToTypeID('#Pxl'), Width );
ad.putUnitDouble( app.charIDToTypeID('Hght'), app.charIDToTypeID('#Pxl'), Height );
ad.putEnumerated( app.charIDToTypeID('Intr'), app.charIDToTypeID('Intp'), app.stringIDToTypeID('bicubicSharper') );
executeAction( app.charIDToTypeID('ImgS'), ad, DialogModes.NO );

Similar Messages

  • Lightroom 1.4.1:  Reducing File/Image Size for Web/E-Mail

    This should be a simple thing.
    I need to reduce my file size to upload it into various things on the web and e-mail and what not.  Sometimes it asks for a specific size.
    Right now, I'm using the Export function to do this, which means I have to reset the Image Settings each time in order to get to the size required.
    Isn't there and easier way to do this, like just type in the image size you want and have the program reset the image proportionately?
    Is there a ratio chart for this, like 1000 x 1400 = # of bytes?
    This is a function used all the time--I can't believe it's this cumbersome.

    Banktank wrote:
    (a)     How do I know I am selecting the correct pixel size for e-mail?  Just keep hunting and pecking until I find the right mix or is there a number combination that works consistently?  And if the latter is correct, what is that number combination.
    I just can't believe that reducing the MP size to get it in shape for an e-mail "thumbprint" photo is this tough.  Even with the 'preset', I'd have to set up a preset for every picture because they vary by MP and the scaling seems to change.
    There is no "standard" size for sending images via email. Just make it small. There is a save for email preset in recent releases of Lr. You can download the demo and see what that entails.
    You don't have to create a preset for each picture. I don't know what you would say that. Yes, the amount it compress varies with the information in the image, but this has always been the case with JPEGs. You don't have to make an image that is exactly some size. You just have to make it small enough for most MTAs and MUAs to handle. Since there is no real standard for this, just make it small enough for you.
    Something like 800px on the longest side, 70-80% quality should do it to find the JPEG compression sweet-spot.

  • Reduce file QT size with Quicktime Pro ?

    Hi
    I have a digital camera saving videos under the Quicktime format. Files are too big to be sent by e-mail and therefore I would like to reduce their size. I can not find sharewares allowing such operation for files under Quicktime format. Does the Quictime Pro version allows this ?
    thanks

    Yes.
    QuickTime Pro allows you to edit the file and export it using other compression schemes to reduce file size.
    But you really need to find out the format of the files on your camera. Use the Movie Inspector window to view your file. If it is MPEG-1 QuickTime is the wrong tool. MPEG Streamclip (free) can edit MPEG-1 files and export them to QuickTime formats.

  • Reduce file´s size

    Hello.
    I´m doing a dvd authoring with dvdsp and I have a little trouble. From Final cut I did an prores 14440x1080 export with current settings but the final file is about 1,42 gb and I don´t have enough space at dvd to put it ( I have another videos at DVD also ).The audio file is also 1,42 GB. Can anyone help me? Can I do any type of conversion to reduce the amount ?

    the final file is about 1,42 gb
    Are we talking about the final size of the MPEG2 and ac3 elementary streams that will be used to make the DVD or that of a ProRes master exported from FCP?
    If it is the former, there are plenty of free, online Bit Rate Calculators that you can use to make the files the right size.
    If it is the latter, then you need to make the elementary streams with Compressor first. They will be a lot smaller than 1.4 GB. Compressor comes with DVD presets based on running time in minutes.

  • Exported .wmv pixelates only when changing file dimensions

    Hi
    I shot a project in 960x720 HD and edited it in a matching timeline.
    Using flip4mac, whenever I try to export it to .wmv with reduced file dimensions of 380x160 (or any file dimension other than the current), it pixelates.
    I haven't had this problem in the past.
    Any ideas?

    Try Flip4Mac's forum. You'll get answers from Telestream and knowledgable Episode users. You might want t include more details, like exactly that the media is, DVCPRO HD maybe, and exactly what settings you're using to export.

  • Compress or reduce file size

    This is a pretty basic question but I have never had this issue before. I have an mpeg file (mpeg1 muxed codec) of 18mb which is too big to email. What's the best way of either decreasing the file size or compressing it?
    Also, I seem to think that neither iMovie HD or iMovie 08 can deal with an old mpeg file. . the sound gets lost?
    Thanks
    Tom

    Also, I seem to think that neither iMovie HD or iMovie 08 can deal with an old mpeg file. . the sound gets lost?
    This is normal. The QT structure is "playback only" compatible with multiplexed files (MPEG-1, MPEG-2, VOB, Flash, etc.). Use an MPEG-base, third party conversion application (with required QT components installed if needed) here to transcode the content and retain audio. (I.e., the free MPEG Streamclip application will handle MPEG-1 content.)
    I have an mpeg file (mpeg1 muxed codec) of 18mb which is too big to email. What's the best way of either decreasing the file size or compressing it?
    There are two basic approaches here. The first is to re-compress the file using a more efficient codec (like H.264/AAC) using a lower data rate than your original file. Depending on your original video data rate, you may have a lot of "headroom" for re-compression or only a small amount. In the later case, you may have to also reduce the dimension of your export to preserve maximum quality. What you finally do may likely depend on what you can "live with" in terms of quality and file size.
    A second, approach would be to upload your original file to an online server and then send the URL for the file, a reference movie, or a QTL (QuickTime Media Link) file which will play the online movie back on the recipient's computer. An offshoot of this approach would be to post the file to your own web site page using an application like iWeb and allowing the recipient to view and/or download the file directly from your site or subscribe via RSS if you plan to provide content on a regular basis (e.g., as a Podcast or Video Blog).

  • Reducing file size in batch processes (multiple files)

    I am now using a canon XTi 10.5 megapixel camera. I'm loving it, taking tons and pics, and see my memory on my computer shrinking rapidly. I'm not too worried about hard drive space as I can simply buy another hard drive. Where I'm running into problems is on my iPod. I have an 80gb video iPod. It is suddenly full, Almost 1/2 with audio, 1/2 with photos. I'm realizing that I need take the 5-7 megabyte files each (photos) in iPhoto and reduce them down a bit in dimensions and/or jpeg compression.
    I use photoshop elements and am familiar with the multiple files option. I've used that a bit, nice feature.
    Heres my question:
    I know iPhoto is sensitive to manipulation of photos/changes if the changes aren't done through its interface. How can I go about taking the original pics for a number of events (talking about perhaps 2000 pics right now) and batch process them down in size a bit without weirding out iPhoto?
    Does iPhoto have an option to batch change files in such a fashion? Is it as simple as finding the originals in the finder and simpy reducing them in size and making iPhoto update its thumbnails?
    and how do I make iPhoto update its thumbnails, I forget...
    Thanks

    If you just want displayable image files on the iPod and not the full sized files then a very good solution, IMO, is to export those photos you want on the iPod to a folder on the Desktop. Then use Resize! to batch change the pixel dimension and the jpg compression level of the files. For my iPod Nano I use 640 x 480 and have Resize! compress them to medium. That gives me files in the 100 KB size range. If you want a smaller file just increase the compressions level a bit. Resize! automatically creates a new folder for the resized images so you can try different levels on the same folder. You can get a lot of photos on your iPod at that size. I then put that folder of resized files in my Pictures folder and have iTunes use it instead of using iPhoto.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Reducing pixel dimensions increases document size.

    In photoshop cs6. Working on an image of 15000x18662 pixels, with about 100+ layers.  doc size 800mb/6.43GB.  To optimize speed, I reduced the file size to the absolute minimum I need which is 13200x16423.  However now the file size grew bigger  620.2M/6.45GB.   Some layers extend beyond the visible image area, so I cropped the image "deleting cropped pixels" , but this increased the image even further to 6.50GB.  What's going on here? 
    Why is the file size increasing when I decrease pixel size?
    Why would deleting cropped pixels increase file size?

    This is a user to user Forum.
    If no one who has bothered to read the original post considers it of enough interest to investigate or advise that is up to them.
    Can you provide the original image?
    Depending on the interpolation settings on the content downsampling might result in a lessened effect of the applied compression.
    You seem to give the approximated values from "Document Sizes" in the status bar – what is the actual file’s size?
    Quote from the Reference:
    Document Sizes Displays information on the amount of data in the image. The number on the left represents the printing size of the image
    —approximately the size of the saved, flattened file in Adobe Photoshop format. The number on the right indicates the file’s approximate
    size including layers and channels.

  • Compress PDF vs. Reduced File Size Quartz Filter?

    Sometimes the PDFs I produce through the print function get pretty huge.
    In the PDF drop down on the print menu there is a compress PDF option that I sometimes use.
    Then someone said I should go to print, to the copies and pages, select "colour sinc" and on the Quartz Filter select "Reduce File Size" then hit the "save as pdf" on the pdf button.
    I have no idea what I just typed
    What's the difference between the two approaches and which would produce the best quality PDF at an manageable size?
    I just tried PDFing this page using the three options -- regular pdf, compressed pdf and that colour sink / quartz filter / reduce file size. Damned if the smallest file isn't the regular (at 76 kb) next is the reduced (92kb) and the largest file is the compressed (140kb). Maybe not a proper test but what the heck?
    Any thoughts?
    Thanks

    I believe that the same filter is applied no matter whether it is done through the Compress PDF button, which is an Automator action, or using ColorSync.
    If you would like to experiment with it, you can also apply it through the ColorSync Utility. If you copy the Reduce File Size filter, you can change the amount of reduction done. You can preview the results there, too.
    The filter only affects images, not text.

  • Best Compression Settings for Reduced File Sizes

    I've been compressing MP4s and trying to improve the video file size but I'm surprised that Adobe Media Encoder is creating larger file sizes despite reducing the dimensions and audio quality. I've tried MP4 and FLV export settings. Does anyone have any recommendations?

    Hi(Bonjour)!
    See this link:
    http://www.kenstone.net/fcphomepage/qt_movies_fromfcp.html
    Michel Boissonneault

  • Btach reduce file size within iPhoto interface

    Fellow iPhotorers
    Is it possible to bulk or batch reduce file size within iPhoto - i.e. without having to export then re-import the pics THEN delete the originals?
    For example - if I have shot a bunch of pics at high res which I decide or worth keeping as small (low KB) jpegs and not 3MB camera originals.
    Cheers
    Russell

    Russell:
    Welcome to the Apple Discussions. Depends on what you mean by resize. Do you want to reduce the pixel dimensions, say from 2272 1704 to 800 x 600 keeping the same ratio of dimensions, and, thus, reduce the file size? Or do you want to keep the original pixel dimensions and reduce the file size, which requires a reduction in quality thru greater compression?

  • Reducing File Size in Photoshop

    Hello,
    I had a question on reducing the image size after editing in Photoshop. 
    After doing my changes in Lightroom, I typically make edits in Photoshop and then do some final touchups back in Lightroom.  The RAW file from my camera is approximately 24 MB.  After making my edits in PS, the TIFF file it produces (with all layers flattened) is in the 60 MB range.
    My question is, if before sending in back to LR, I change the image size in PS say to 12 MB or so, am I basically creating a lossy jpg file?  Meaning -- by reducing that TIFF file size down to 12 MB am I throwing out important information such that when I go back to LR I am losing information and won't have as much control as the 60MB TIFF file?
    I am trying to avoid having to keep upwards of 80MB per image (due to the RAW + edited file).  I don't want to lose imporant information so I will if I have to, but would prefer not.
    Thanks,
    Scott

    If you reduce the file size in Photoshop you reduce the pixel dimension of the photo which means that you throw information away - independantly if you save as JPG or as TIFF or PSD.
    That means that the reduction in file size is a reduction in image quality.
    If you want to print the image you need a certain resolution (dpi) for the print - typically 300 dpi.
    If you want to make a print of let's say 8" x 10" at 300 dpi you need a pixel dimension of 2400 x 3000 pixels which results in a file size of roughly 22 MB (flattened file).
    If you have reduced your file to 12 MB you cannot make a print of 8 x 10 at 300 dpi without upsampling first, i.e. Photoshop (or Lr) have to "invent" the missing pixels.
    So reducing the file size is simply not an option - unless you use your images exclusively for the web where you don't need large file sizes.
    If you edit your Raw files in Photoshop you have to live with large file sizes.
    The only way to avoid that is: Do edit in Photoshop only if you absolutely cannot do it in Lr.

  • Running reduce file size results in excessive I/O

    I'm running Acrobat 9 Std on Windows XP. I've noticed many times that when I load a PDF into Acrobat and select the reduce file size option, the amount of I/O and time taken to completion seems extraordinarily large. By far the longest part of the process is subsetting embedded fonts. For example, at the moment I have a file size reduction running on an 80 page 10Mb PDF. So far it has been running for about an hour, and Task Manager shows that Acrobat is using almost 600Mb of RAM, a fairly constant 55-60% of CPU, and I/O reads are over 10Gb and writes over 15Gb. The computer has 4Gb of memory and Acrobat is the only application running, so swapping is not the cause of the slowness. I have other larger manuals (some of them about 800 pages long) that I periodically need to run this process on, and those can take almost a day to complete the size reduction, with Acrobat reading and writing over 100Gb to complete the size reduction.
    These manuals are all produced by running texi2pdf on the texinfo source (both HTML and PDF get produced from the one set of source files), so there is nothing I can do at PDF creation time about the size of the created files. I can usually achieve about a ~50% size reduction by running them through Acrobat, but the way that it does this seems extremely inefficient.

    You might also want to look at the PDF a bit. You can check the document properties to see what fonts are included. Sometimes with LaTeX, a new set of fonts is included for each graphic or such. I have seen some wild results that really bloat the file. Also, you might try some of the preflight scripts to see if they can resolve some of the issues.
    Might the PDF actually be a graphic collection and not contain any text? There are several possible solutions, some that might help are not generally recommended, but knowing what the PDF is like would help. If you could extract a few pages and post them someplace (dropbox or acrobat.com possibly), we could give a better answer maybe.

  • HT4114 Reduce file size when projecting onto large screen?

    Hi,
    Does "Reduce File Size" reduce the quality of an image or video that is being projected from my iPad 3 onto a 10ft screen via VGA adaptor?  I'm teaching a film class, and multiple film clips and stills seem to cause Keynote to grind to a near halt.   We can't really get the room adequately dark, so I really don't want to reduce image quality any further.
    Thanks in advance for any help suggestions!
    Gretchen

    virtual.gretchen wrote:
    Does "Reduce File Size" reduce the quality of an image or video...
    Gretchen ~ I don't know the answer, but can say that I know of only one process that reduces file size without reducing image quality. Perhaps others will chip in here with more suggestions...
    The free "JPEGmini" reduces the file size of JPEG images without reducing their dimensions or perceivable quality. The Web version allows you to upload and downsize one image at a time. The Mac App version avoids uploading and allows you to downsize up to 20 images per day for free.

  • Reduce file size to send over Internet

    My daughter is submitting a 3 minute IMovie that was 6GB and I managed to reduce it to 34MG (via all the export, quicktime, etc. instructions). I need it to be 10MB max. Any suggestions for getting there? I know she brought in snippets of clips so after reading through some discussions, she's probably got a lot of extra stuff. Getting rid of it and not losing everything sounds a little scary for somewhat of a novice. Anyway, help! She's submitting tonight for a scholarship ... if we can get rid of 24MB!

    A 3 minute .mov file could easily be made into a 10MB file size.
    You need to use the "expert" export options and you may need to experiment with the settings.
    Use H.264 or MPEG-4 Video codecs. Reduce the dimensions to 320X240. Cut the frame rate to half of source (30 fps becomes 15 fps). Reduce the data rate to under 2MB/sec.
    Don't foget audio compression. Use AAC audio codec set at 44.1kHz (or lower if only voice over or camera capture audio). If you don't need stereo mono is half as large in file size.

Maybe you are looking for

  • What worked to find my backup encryption password that I didn't set!

    As so many are dealing with, went to set-up new iphone 5 from my iphone 4 backup that was very important to me. I got the dreaded backup password hault. I tried everything! Different pc didn't work, nothing but a circle of nothing without that passwo

  • SOAP Receiver Adapter - Read Header data on Synchronous Response

    I have a scenario - flat file to SOAP. The web service provider sends a response that contains data in the Header that I need to access. I have tried to use the "Do Not Use SOAP envelope" option on my receiver SOAP adapter, and I have configured my r

  • Is there any ECC report with PurchOrder and Purchase Requisition Selection

    Hi there, for one of my BI report reconciliation with ECC requirement, I would like to know how many POs are there without Purchase requisitions, same way want to know how many POs are there with Purchase requisition. I know some tables where we can

  • Acrobat 9.0 Pro Installation

    Does anyone know if the Acrobat 8.0 installation wizard will work w/ v9.0? Will they be releasing an installation wizard for v9.0? Has anyone been able to push out the install w/o using SMS? How did you push it out over the network to users w/ restri

  • What is the best option for 'update.... set' in owb?

    Hello. I have been reading on a number of ways to implement following query in OWB: update TABLE A set Value F = (select Value B from table B where (nvl(trim(A.valueC),trim(A.valueD) = trim(B.ValueF) and substr(A.valueG,1,2) = trim(B.valueH)) or ( nv