Pre set the size of the final file

I'll try to find a method that allows me to pre-define the size of the final file to for example 1.8 MB. The idea is that I can set the size of parameter file (e.g.1.8MB) and lets say a resolution of 72 dpi for example. I run the command and Photoshop reasambles image to pixel dimensions necessary until I find myself with a file exactly 1.8 MB with a resolution of 72 dpi.

The reason why? I need to convert 3500 images that are exactly 1.8 MB. The pixel dimension are not relevant in this case

N ° not in PS. It doesn't ever work under very specific conditions, in any case. You would need to settle on a format that uses no compression or a compression method that is predictable and compress the same amount regardless of the content of the image and the program must have a way to enforce a file of cropping and scaling automatically size to reduce the number of pixels. Sort of a safe for the Web on steroids, but using uncompressed TIFF or something else. It may even be necessary to run the algorithm of coding in reverse and in a loop of trial and error and even then, the question is, how exactly the size of the file must match. Apart from some obscure programming demos which produce images specifically companies or generate specific buffers for testing purposes, I have seen nowhere implementation practice.

Mylenium

Tags: Photoshop

Similar Questions

  • Export DNxHD with 8 channels audio multi... Problem! the final file only stereo all mixed with 6 empty strings.

    I export DNxHD with 8 channels audio multi... My problem is that the final file all mixed in the first 2 stereo channels with the channels empty rest 6.

    I'm lost on what could be the problem.

    The main audio channel is 8 channels... NO stereo.
    Export, I chose DNxHD and audio 48000 Hz with 8 output channels


    What could this be? I need to deliver a film with the 8 mono channels.

    Really appreciate all the thoughts/help!

    Thank you

    Christian

    That's how I would implement mixer in CS6's using a sequence of 8 track with 8 mono channels (mono channels using maintains levels matching, stereo and standard tracks can cause differences in level of 3db). Note the Red output channel selection and the panpot position indicated in blue.

  • Setting the maximum file name length under Win XP x 64

    I am trying to find a way to set the maximum size of the name files in Windows XP x 64?

    I think I need to set the value of the MAX_PATH limit in environment variables or the Windows registry?  I am running Windows XP x 64 on an NTFS partition, so my theoretical maximum for a file name is 255 characters. Is it possible to put down?

    Destructive how would making this change not my system?

    Thank you

    MAX_PATH is a system/constant variable used when the Windows operating system is compiled.  There is no way to effectively change without recompile Windows from its source code.  Note that this sets the maximum length of the full path to the file, including directories parent so that the only way that a file can actually be 255 characters long would be if it was located in a root directory.  This is not a hard limit, however, there are some programs that can handle path names has more MAX_PATH (for example "Robocopy").

    HTH,
    JW

  • Two hard drives - what to set the page file to?

    I have two hard drives, Windows is installed on C:, what should I set my page of the settings file for better performance? Hard drive space is not a problem, I have a 250 GB and a 1 TB drive, both are less than half full. I have 3.25 GB of RAM DDR2.

    I heard move the swap file on a second hard drive is beneficial, because the OS files and the page file could be consulted at the same time. Defining a very large page file or file page on both drives will hurt performance? What is a variable size compared to a matter of constant size?

    It shouldn't be noticeable performance difference if the swap file is bigger than "necessary".

    If your system can it take into account, it is considered generally to be a performance advantage to put the file on a different physical disk than the operating system is installed, provided the other player does not see many IO already.

    By using a constant size / fixed can eliminate fragmentation of the file page that can occur if it is sized dynamically.

    If you anticipate relying heavily on the swap file, maybe reconsider and add more RAM to the system, if possible, or upgrade to a 64-bit computer and the operating system that is able to handle more RAM.

  • How to set the ALX file for compatibility of the storm

    Well, he can't ' be that lasts.  How to set a value in the ALX file so that my application when it is installed by the Manager of funds an ALX and COD file, behaves like a native storm app?

    Anyone?

    Thank you

    Gerry

    I asked this before but never got a response from RIM.

    I guess that they neglected to provide a way to do it.

    Strike 3 for compatibility mode.

  • How to set the primary file in custom filter UCM

    Hi all

    I have a requirement where I need to change the primary file that is downloaded.

    I use validateStandard filter and above the file gets checked... I want to change the primary file for some another file...

    But the problem is that I don't get what function I can set the value for the metadata of the primary file.

    Here is my code:

    public int doFilter (workspace ws, linking DataBinder, ExecutionContext cxt) survey DataException, ServiceException
    {
    Report.trace ("IMG_COMPRESS", "Start doFilter", null);

    String xcontentType = binder.getLocal ("xContentType");
    String primaryFilePath = binder.getLocal("primaryFile:path");
    String primaryFileName = binder.getLocal ("primaryFile");

    If (xcontentType.Equals ("CTID24"))
    {
    Report.trace ("IMG_COMPRESS", "Original file path:" + primaryFilePath, null);
    Report.trace ("IMG_COMPRESS", "file name:" + primaryFileName, null);

    Try
    {
    The output if the primaryFile:path are missing
    If (primaryFilePath == null | primaryFilePath.trim () .length () < 1)
    {
    Report.trace ("IMG_COMPRESS", "Could not find the primary file path", null);
    Back to CONTINUE;
    }

    Change the original image (input image) to the compressed Image (output image file)
    primaryFilePath = "E:\\ImgCompression";
    primaryFileName = "compressed.jpg.txt";

    binder.putLocal ("primaryFile:path", primaryFilePath + "\" + primaryFileName);
    binder.addFile (primaryFilePath + "\" + primaryFileName);

    Report.trace ("IMG_COMPRESS", "new Img path:" + primaryFilePath, null);
    Report.trace ("IMG_COMPRESS", "new Image Name:" + primaryFileName, null);
    }
    catch (System.Exception e)
    {
    Report.trace ("IMG_COMPRESS", "Unable to read file", null);
    }
    }
    executed properly, filter return CONTINUE
    Report.trace ("IMG_COMPRESS", "End doFilter", null);

    Return FilterImplementor.CONTINUE;
    }

    There is no function with addFile in the DataBinder class.

    Help, please

    As I understand it, you create your own compression via a custom filter and you want to replace the original file with this compression.

    That being said, why not do exactly as that - the original file is placed in some ~ temp directory on the server (after download), so go ahead, create compression and put it instead of the original file. One thing to consider is the MIME type - if replacing it, it should be the same; If it is not that you had to adjust first some metadata.

  • How can I set the xml file data button colors?

    I read an xml file to create a group of buttons. I also use a Repeater to create the Group of buttons.

    I am the created buttons, but am unable to correctly set the fill color. I get the error 'Implicit coercion of a value of type String to a type unrelated to Array' if I try to plug r.currentItem.value, even when I used an Actionscript function to convert a string to an array of 2 uints. Is there a solution of casting of simple type that I'm simply not?

    Any help would be greatly appreciated!

    The xml file has the following format:

    < color >
    < color >
    < name > cantaloupes < / name >
    < value > 0xFFCC66 < / value >
    < / color >
    < color >
    < name > banana < / name >
    < value > 0xFFFF66 < / value >
    < / color >
    < color >
    < name > lemon < / name >
    < value > 0xFFFF00 < / value >
    < / color >
    < color >
    < name > honeydew < / name >
    < value > 0xCCFF66 < / value >
    < / color >
    < / color >

    The code I have so far is:

    <? XML version = "1.0" encoding = "utf-8"? >
    "" < mx:Application xmlns:mx = ' http://www.adobe.com/2006/mxml ' initialize = "colors.send ()" layout = "absolute" > "
    < mx:HTTPService id = "color" url = "assets/colors_standard.xml" resultFormat = "e4x" / > "
    < mx:XMLListCollection id = source="{colors.lastResult.color}"/ "xlc_colors" >
    < mx:TabNavigator left = "0" top = "0" right = low "0" = "0" >
    < mx:Canvas label = "Tab 1" width = "100%" height = "100%" >
    < mx:Accordion width = "200" left = "0" top = "0" low = '0' >
    < mx:Canvas label = "Colors" width = "100%" height = "100%" >
    < mx:Label text = "Current color Selection" left = "10" right = "10" top = "10" height = "20" fontWeight = "bold" / >
    < mx:Button label = "Update of colors" left = "10" right = "10" top = "227" height = "22" id = "button_colors_update" / >
    < mx:Canvas height = "189" left is '10' right is "10" top = "30" borderStyle = "outset" backgroundColor = "#e9e9e9" >
    < mx:Tile id = "tile_standard" direction = "horizontal" tileWidth = "25" tileWidth = "25" horizontalAlign = "center" verticalAlign = "middle" borderStyle = "outset" left = "10" right = "10" top = "10" height = "134" backgroundColor = "#ffffff" >
    < mx:Repeater id = "r" dataProvider = "{xlc_colors}" >
    < mx:Button toolTip = "{r.currentItem.name}" height = "15" width = "15" x = "10" y = "10" / > "
    < / mx:Repeater >
    < / mx:Tile >
    < mx:Button label = "Other colors" id = "button_colors_online" height = "22" left = "10" right = "10" low = "10" / >
    < / mx:Canvas >
    < / mx:Canvas >
    < / mx:Accordion >
    < / mx:Canvas >
    < / mx:TabNavigator >
    < / mx:Application >

    Here you go:


    http://www.Adobe.com/2006/mxml '.
    verticalAlign = "middle" horizontalAlign = "center".
    layout = "horizontal" >


    [Bindable]
    private var array: Array = ['blue', 'red'];
    private var _color:String = "red";

    private void fillColors(c:String): Array {}
    StyleManager.getColorName ('red'), StyleManager.getColorName ('blue')
    return [c, c];
    }
    ]]>




  • Set the video file poster frame

    Hello!

    I would like to know how I can specify a specific image in a video as the poster image that is displayed for the thumbnail in Windows Explorer or Finder window.

    Anyone know how I can achieve this?

    I tried to export from Quicktime Pro, without the desired effect.

    Thanks for your help!

    Is not possible. The player sets the image of the poster.

  • If I shoot AVCHD, which is the predefined setting should I use to export the final file?

    Hi guys! can someone help me with this problem? I am grateful for! I'm of the Brazil... Sorry for my English, it must be a bit rusty... Good luck!

    Well in this case you have to CS6 Encore to author the DVD.

    Export of first with a dvd mpeg2-preset (you can change the settings if you like)

    Import these two files (audio and video) in again, menu creation, burn, completed.

    To acquire Encore CS6, you will need to download first CS6 (they come together in one package)

    Here's how. CS6 first lies in the previous Version.

    Might need to watch TV how to use again

    Learn CS5 | Adobe TV

    With the help of first Pro CS6 of CC & Encore for Bluray, DVD and Interactive for iPad, ATV and Mobile HD video | DAVTechTable | Adobe TV

  • set the default file extension

    I have a button "save under" in my front panel and when I press this button a dialogue apears asking me a path for savaing a file in a format "xls". In this case every time I press the button "save under" I have to type the file name extension ".xls" as well as the file name.

    Now, how can I pre-define '.xls' as value format by default when I press the button "save under" it usually then need to type the extension (.xls) too?

    V. S

    Like this

  • Setting the default file locations in Photoshop CC

    In Photoshop CC, I'm looking to set a specific file location where my quick export whenever exports without me having to navigate. To search for a specific folder to save my projects every time.

    Hi Fausy,

    Please check the next of the same discussion thread: Setting Photoshop's default saving location?

    Concerning

    Tanuj

  • Set the export file based on the name of the Collection?

    I would like to be able to parameters predefined export that would save the selected pictures in a subfolder within my file of export with the name of the subfolder automatically value corresponds to the collection (or a set of collection) name. Is this possible?  I tried looking at the name of custom folder options but could not quite see how do so any help is appreciated.

    So, if my parent export file is say c:\Photos\Exports and the collection my name is 'Summer2012', I want to automatically export all the photos in this collection at c:\Photos\Exports\Summer2012. Is this possible or should I set manually each time?

    I would like to automate this is to say that I can't wait to put up the pictures, I could go ahead and export them without having to edit a lot and then manually cut and paste of c:\Photos\Exports in a Summer2012 folder. If later, I apply alterations to photos, it would be much more convenient to use a predefined export, knowing that they would automatically update the files in the Summer2012 folder, rather than having to do another manual cut and paste every time or manually select the folder if you choose the option "Choose the folder" later. Is there another way to do what I'm looking for? Thank you.

    OhPinchy wrote:

    Thank you, Richard. That tool looks very practical, but it seems that you must manually recreate the structure of collections in there - not a large number as you just need to do once offshore, but before to go this route I just want to confirm if there is a possibility to do it dynamically/automatically?

    Unfortunately, there is a dynamic method or automatic integrated with Lr. I'm not even sure the plugin SDK supports Jeffrey otherwise (the author of the plugin you're looking at) would have incorporated the feature.

  • Is it possible to set the default file format when exporting?

    It would be a great help.

    N °

    Mylenium

  • Video framerate massively out of sync on the final rendering only

    Hi all

    I used a screen reader program (Cam Studio) to save myself showing something on the screen in full HD and record my voice with a microphone. Due to the program settings that have been apparently set the final file was a 20 fps framerate but was otherwise fine played and downloaded on YouTube with success. However there was a long interval at first until I started talking so I thought I'd use After Effects to crop the video and add a few titles in singles. I created a model to the standard 25 fps 720 p and imported images. Everything seemed fine, he was appearing on the timeline and preview at the same rate as the original. I made him as H264, but the final file was a total mess with the audio that plays normally but the video play faster, perhaps double the speed. I checked the images 'Interpret' > hand ' settings and it was defined on the original framerate 20 fps and also checked the details on VLC which also reported 20 fps. I recreated the comp and tried repeatedly to rule out tweaks, I would put but everything seems to be set up correctly.

    Anyone got any ideas?

    Thank you very much

    KW

    Finally it worked.

    I went on the whole record that incorrectly displayed as a sequence of images long - he was a little less 11 000 executives and the run time was 9.09. Simple math reveals that this means that the actual framerate was 5.62 fps not the 20 fps that was reported by all of the programs it runs. Defining "Interpret images" to the correct value then made the images make it perfectly in a model of 25 frames per second.

    The process with the image sequence was necessary because I did not have a good figure for the actual framerate and only knew he was playing MUCH faster (about four times) the speed, he should have. It seems that the framerate on the file flag was incorrectly, but the file always presents in preview in AE and plays correctly on YouTube and VLC which is kinda weird. My method is a very clumsy to find the solution, but an option if you have similar problems. Of course, the quality of the images is not important, because the real goal is simply to learn the total number of frame, so you can generate a sequence of images with resolutions tiny to save disk space and time. As it was, it took a few minutes to make almost 11 000 images in quarter HD resolution.

    Hope it will be useful to you.

    Edit: the framerate in real-time was also visible in the images in the preview screen, making the frame of the output method is not necessary, once you know this figure.

  • File adapter. How to set the file creation mode (e.g. 666)?

    Hi all

    I use outbound adapter file to write files.
    Adapter creates the access mode of the Pentecost 622 files (rw - r - r)-.
    My requirement is to have files in access mode 666.
    How can I achieve that?

    Thank you
    Oleg.

    Hello

    This can be done by the user via the umask command...

    Take a look at this...
    http://www.AvaJava.com/tutorials/lessons/how-do-i-set-the-default-file-and-directory-permissions.html

    See you soon,.
    Vlad

Maybe you are looking for

  • Why the tool Alexa doesn't show "private"? (No ranking at all).

    Hello Since the last update of Alexa ranking tool doesn't show any ranking for any site. It shows constantly "private." I've tried everything recommended and checked all the settings but I can't find the problem. Kind regardsLizzi.

  • 3G radio

    Hello Nobody knows what kind of 3G radio slate Thinkpad aura? Is this a Gobi3000 that will work with CDMA and GSM or is - this other has GSM? Do you know that US carriers/frequencies it will work with if its GSM only? Thanks advance!

  • New number of graphics card

    Hello I recently bought an Asus 7750 V2 for my desktop HP-P7-1414. I installed it in the PCI express slot without any major problems. Turn on the computer and there are 6 beeps and moniter says no signal found (yes I have the DVI cable plug the graph

  • How to set programmatically the current node in a tree view of the ADF.

    HelloI'm trying to understand how to set programmatically the current node in a tree view of the ADF.My use case example is quite simple; If we take the sample application ADF Summit where under Management Summit, we have a tree view on the left with

  • Madness of watermark

    I posted here once before on this subject without receiving a viable solution.I had no problem with the authorized images and watermarks up to a week or two ago. Before that, every image that I license and save in a library folder correctly would be