GDI + error on images with a size > 2 MB

. For nothing less than Image.Save and Image.SaveAdd works great. Clues?

Hi Kiran Raj,

·         Did you do changes on the computer before the show?

Follow the steps in the article.

Error message when you use the Image.Save method to create a very large GIF file in Windows Server 2003 or Windows XP: "System.Runtime.InteropServices.ExternalException: a generic error occurred in GDI +".

http://support.Microsoft.com/kb/915415

Tags: Windows

Similar Questions

  • Invalid launch image - your application contains a launch image with a size modifier which is only supported

    I use the latest Adobe AIR and SDK, 3.5. The app works on my iPhone 5 and displays the loading screen, but by doing an app store version and upload I get this:

    Dear developer,

    We found one or more problems with the delivery of your recent for "eat sleep skateboarding". To process your order, the following questions must be addressed:

    Invalid launch image - your application contains a launch image with a size modifier which is only supported for applications built with the iOS SDK 6.0 or later version.

    Once these issues have been fixed, go on the release Details page, then click on "Ready to Upload binary." Continue through the submission process until the status of the app is "Waiting for Upload. You can then deliver the binary has been fixed.

    So he complains on my [email protected] I think. If I delete it, he could accept the file, but I really want to a loading screen. So, how can I fix? I only find solutions for xcode developers

    You are probably not using the last available AIR SDK. Labs releases contained a bug leading to this issue.

    So, update your AIR SDK from http://www.adobe.com/devnet/air/air-sdk-download.html should solve the problem.

  • In Vista, get Windows error bad image with Microsoft

    Hello

    I get a bad image of the user interface to logon with Microsoft error and start in safe mode. I then try the sfc/scannow command, but it comes up with another error stating that windows resource protection could not start the repair service. I am also unable to find my vista drive. Any suggestions? Hi, I'm a bad image of the user interface to logon with Microsoft error and have start in safe mode. I then try the sfc/scannow command, but it comes up with another error stating that windows resource protection could not start the repair service. I am also unable to find my vista drive. Any suggestions?

    Hello

    I would say that you can start your computer in a clean boot State and check if this is related to a software conflict of third.

    Note: Follow step 7 to your computer as usual.

    If this does not help, I'm afraid, you may need to do the Startup Repair and for that, you need the installation disc.

  • Lighbox creation which displays images with different sizes

    Hey,.

    I am trying to build a gallery lightbox in Muse. The thumbnails would all the same size, but the corresponding images have the width/height reports.

    However, the lighbox widgets Muses seem to view all images in the same proportions.

    I tried to implement outside as Lokesh Dhakars Lightbox 2 plugins instead, but I don't know how.

    Can someone tell me if/how I can make this work with the Muses widgets or how do I implement an external lightbox plugin?

    Thank you!

    Do the new hero defining 'Fit content proportionally. This only affects new images added to the publication. Existing images will not change, so do not forget to remove any existing image and add it after changing the setting.

  • Size and align the Image with Perspective Warp

    How do you get an image to the size and align it with the perspective distortion, unless I approach this wrong?

    You don't say how you approaching.  If something has a look of perspective.  He has a perspective not shape, size and resolution.   First of all, you need to resize the image to the size of the shape's aspect ratio. the boundaries of the shape. Hide the image resize to this form. Perspective transform the layer just perspective-looking mask.  And also to position the layer.

    To tell the truth do not know how to automate all this.  Automate everything resizes images for the limits of the perspective transform the final location of the image.  I align the image resize without perspective the limits of location and hide the image to the shape in the image of the perspective transformation.  I finished the automation here.  I leave the user with the responsibility to transform the layer to add the look of the perspective and rotation. I have no idea how to do to automate rotation and the appearance of perspective or create to a template that can be filled with automation of Photoshop.

  • slideshow with images of different sizes (Adobe Muse CC 2014)

    Hello world

    Firstly it should be noted that I use Adobe Muse CC 2014

    Is it possible to create a repeating slideshow (not full screen or Viewer), with images of different sizes, so that when the image is square or portrait or landscape, the image size will be changed automatically depending on the size of the image inside.

    I know that in some widgets, one solution is to select each image and manually set the desired size of each image, but it is not easy when you have for example 50 images.

    Thank you

    You would need to manually go to this, unfortunately we cannot do this without manual work.

    Thank you

    Sanjit

  • working capital with images of different sizes in the table

    Hello, I have a table with images of different size.  I want to use a bearing on each Panel, but my image is not the same size.  When I roll over the image the first image disappears.  Any suggestions?  I use CS5.5 Show map to the bottom.of page.

    Kappa Delta Pi

    Thank you

    Also I have never been able to use the "Preview in browser" globe icon  I don't seem to be, any suggestions on how to add this?

    A very simple solution is to make a second image that contains the image superimposed on the map. You must have 4 total images for this (all images have the same size):

    1. the plan with no photos

    2 - 4. The card with a unique image on the desired region (i.e., 3 additional images).

    In your access points, you exchange the entire map with the map of the desired region.

  • How to create ePUB with full-size images/pages to adjust according to the device?

    Friendly greetings,

    I tried, for almost two months, to convert/create my 7 books that are printed in electronic books; with the first edition had to be Nook, with Kindle on the list. Unfortunately, I am still working on just get the first one published! And I could really use any assistance to get this figured out. My intention was to publish several weeks ago... now my despair must publish before the weather gets too hot and the children are outdoors most of the time... or at least not later than Easter. (: 0)

    First of all, my books are books of photo/poetry for children of all ages. They were all designed in Photoshop, where I also created images full size for the first eBook. I received the specifications of B & N for the different devices of Nook. In the assumption that it would be better to create the largest files, thus allowing smaller size devices to fit the page accordingly to fit and the most important would not encumber a smaller image, I size my pages to 1280px x 1920px at 72 dpi. (now I hear 150 is standard?)

    My text is included in the image that design is an image = a single page. I've included a version only the full text of the poem/story at the end for those who want to set the text or use a voice reader. I obviously all original, but for the publication they were all saved as jpg.

    After a fight and a lot of frustration, I managed to finish the manuscript for Barnes and Noble Nook press Manuscript Editor. My internet is molasses and so much of this has been done in the wee hours of the morning when the rest of the time zone is asleep. I had only a page with a problem, an additional empty line/space was irreparable. I published and it had been completely sloppy to be published, although the preview looked a-okay. Only on the upper left of each image/page 1/6 was visible in the corner of my laptop to PC or Nook of my Tablet Android App. So I desperately waited another 10 hours, hoping that no one would buy my book Meanwhile, so he could be removed from the sale.

    I downloaded a demo of InDesign CC, and after two weeks of not even being able to create a new single document for some reason any twisted, I bought a month membership. So far, I am not entirely convinced of this creative Cloud malarkey together, as much... that, like I said my internet is slow... it took me nearly 20 hours just to download the software. (It is really difficult to provide records, seriously?) After a cat and a phone call that I can, in theory, now use InDesign.

    I created a new Document for Digital Publishing to the above specifications (1280 x 1920 px). I did rectangle the size of the page placeholders and place one image per page. This usually inserted the image to 50% and I have to select 100%, and then move them if necessary to place.

    So my first question is: is it possible to place an image at 100% without having to do this step further resizing? Or is there another way to place the image in the size of the page without any of these other measures that would be too good.

    Well, after placing several pages/images I have also selected each and went to Options of Export Object and checking the rasterization of Custom and "resize to text Flow.  I then exported ePUB trial to see how it would look. On the PC and tablet in landscape mode it was far better than the other, but about oh 1/3 from the bottom of each page was cut. On the Tablet, I turned to portrait and voila full page. Woohoo! But alas, I don't want to limit it.

    is there something I am doing wrong? Did I miss a step or two somewhere so that the complete picture should appear on the page? I feel like I'm about to turn the page on this thing, but he's stuck in the one after that.

    I would greatly appreciate any insight, advice, help anyone can offer. I ran the gauntlet of Barnes and Noble... cough, cough... support and apparently I ask questions that cannot respond to any press corner rep and the forums out there have no idea about InDesign. It's almost like with all fantastic beautiful screens out there today nobody wants to picture books! How National Geographic?

    Thank you very kindly.

    In case it is necessary: my laptop using Window 7 64 bit Pro, InDesign CC is 64-bit and my 10.1 Android tablet. I can view the EPUB files in the corners for PC and Nook for Android. I also have a Kindle, LumiRead and various other applications on the tablet. I also have someone get a glimpse of the finished epub, if needed, on a Mac, iPad, or Android phone... even if I don't have not one of these. Don't know who has a corner I can look good. Thanks again.

    Q: is it possible to place an image at 100% without having to do this step further resizing?

    Here I think you want your images to fit within size full page automatically. For this, you can try the following steps:

    1. create a new doc

    2. menu Goto object, and then choose image mount options

    3. Select adjust automatically and fitting drowdown, select "adjust the content to the frame. See the screenshot below:

    After that, your images should adjust automatically in full page placeholder images. Please let me know if this does not work or if the problem you are experiencing is different and I did not understand your problem correctly.

    Kind regards

    POOJA

  • symbol of vs image (cannot change the symbol with the size of the screen?)

    I do a button that increases with the size of the screen.

    I started with the image and tested for positions and the scaling.

    X, Y and W/H = % as well as the image of background W = 100 H = % self

    But once I did it in a symbol to make a button is no longer fits the size of the screen. L/H is grayed out and no.

    background of the image available. Only the X position / maybe there %

    This means symbols can only be positioned but never scale to the size of the screen?

    I'm doing something wrong or is - a characteristic must request?

    Seem to be hitting the wall after the wall to make it happen.

    It is a button that is animated/scaling up/down + down/actions of mouse and with position/resize to the size of the screen.

    Hi, claursen-

    Remember that once you change your evolutionary symbol, the objects in the symbol must also be scalable in order to change the size.  Otherwise, they will be a fixed size and location in a scalable object (that is, in turn, on a stage of evolution).  I created a simple file to help you in the right direction:

    https://creative.Adobe.com/share/4bc5cd1c-0957-4118-ae54-bb040a60d6b1

    Hope that helps!

    -Elaine

  • How can I associate a thumbnail on a page with the image of normal size in another folder

    Help! How can I associate a thumbnail on a page of the site to the image of normal size in another folder, so allowing people to view the image on a blank page?

    It's easy to do in Dreamweaver, but I don't see how in Muse. When I try to type in the location of the image (hard disk), Muse trying to do an http link and said that it can not be found.

    You will need to upload the folder with your images to your host and then a link to the image with this URL in Muse. By example, if you have been upload your image to "www.myhost.com/myimages/image.jpg", you can link the thumbnail for "www.myhost.com/myimages/image.jpg."

  • canvas size changes with the size of the image

    I am just placing several small pictures on a postcard.  When I go to change the size of the image, it narrows the whole canvas.

    Is there some sort of setting I need to uncheck?  I don't do anything with the size of the canvas.  I want it to stay the same.

    Thank you

    As nickna12 said, if the resolution of the picture you want to insert in the model is less than the resolution of the model, it will be re-size to fit the resolution of the new location.

    To insert images without having to worry about the size or resolution: insert images into the postcard file, each on a separate layer and transform each layer in dynamic object (right click on the layer containing each picture and select convert to smart object). In this way, you can resize images from top to bottom and upward once again without worrying about degrading image quality.  On each layer, use the recommended that Noel command (Edit - transform - scale or Edit - free transform) to re - scale each image as you wish. You can use the move tool (black arrow) to move each image in place.

    If you want to "away from the cultures' parts of the inserted picture, you can do so with a layer mask.  One way to do that is:

    • Select the layer with the image that you want to "crop".
    • Add a layer mask: layer - layer mask - reveal all the (adds a layer mask filled with white, so that you can always see your image)
    • Select the layer mask in the layers panel
    • Use a tool like the rectangular selection tool to select the part of your image that you wish to be visible.
    • Invert the selection: Select - Inverse. This selects everything except the part of the image you want to remain visible.
    • Fill the selection with black to hide it away: Edit - fill - (select black as the fill color)
    • Get rid of the selection: select - deselect

    You can use the move tool to move your image hidden anywhere you want on your postcard.  If you decide you want it is larger or smaller, you can use the Edit - Transform command to resize it, rotate, etc.

    In Photoshop, there are always several ways to accomplish tasks, and there may be better ways to achieve this way

  • Will be chip filters scale with the size of the image?

    I created the work to a very large size for a banner. It comes to many of the effects and dynamic filters. I would simply create a smaller version of the file to work with other projects as the original work of the opening size is very long and tax. I don't want to flatten the work because I may need to rearrange the elements of the specific project. When I size down using the size of the Image, with verified scale Styles, dynamic filters always do not fit with the rest of the file. For example, a Gaussian blur will further blur in the smaller file than in the larger file.

    Are my only 1 answers.) to wrap each dynamic object that has a dynamic filter inside another object dynamically to protect during resizing, or 2.) to manually set again the dynamic filter on each layer to match the new size? I'm hoping to more intelligently (ha).

    No, they won't.

    Unfortunately we do not have visibility on the parameters of all filters on the scale of them, nor a means to determine the limits of each filter to know if we can evolve beyond the limits of the filter.

    Yes, 1 and 2 are the most reasonable solutions.

  • Disjoint working capital with images of different size?

    Each tutorial explains the disjoint rollover images MUST be the same size, etc..  But for the type of photos that I work with, it is impossible to make them the same height.  This site is exactly what I'll do with images of different sizes used: http://www.warmbloods-for-sale.com/HorseDetail.asp?HorseID=21333 & UserID = 1775.  No idea how they achieve this?  Or any ideas on how I can manage the same effect with different sizes in Dreamweaver CS4?

    Do a Google search for Lightbox, litebox, floatbox, or look at the Image Gallery Magic of the seven project.

    Nancy O.
    ALT-Web Design & Publishing
    Web | Graphics | Print | Media specialists
    www.Alt-Web.com/
    www.Twitter.com/ALTWEB
    www.Alt-Web.com/blogspot.com

  • Trying to create a bootable USB I get message error "ISO image selected is NOT a valid ISO file.

    Questions of ISO image

    I'll try to find a way to install Win 7 64 bit Pro - on multiple (without a DVD player) netbooks and thought I had found the solution using DigitalRiver to upload a picture ISO of the OS - then (using the MS Windows 7 DVD/USB tool) - create a BOOTABLE usb key?

    However, yesterday I downloaded the image ISO (http://msft-dnl.digitalrivercontent.net/msvista/pub/X15-65805/X15-65805.iso)

    (which, according to the website of souce was supposed to be 3 GB in size - but was 2 GB in size (WHY?)

    And on the use of the tool USB - a got a message error "ISO image selected is NOT a valid ISO file"

    -What this means and what I can do to work around this problem?

    And, I think - that this procedure works with a "corporate license"?

    Tried - same result - the file is obviously corrupt
    I ended up using a previous download that works!

  • Need a Script to the space of images on a total gap, then tag each image with the percentage of the total image space

    By editing the other scripts, I found here and other sites (including the labels size rorohiko), I worked on a script that will each image with the dimensions of the label and calculate the percentage of the spread of everything (including the text, white space).

    Now, I was invited to a script that tagged the images with the percentage of total image on a gap space. This script is so space images on a total gap, then tag each image with the percentage of the total image space. For example if there is an image that is 10 x 10 inches and four pictures that are images of 2.5x2.5, 10 x 10 would be tagged with 50% and the 2.5x2.5 would be tagged with 12.5%.

    This is the script that does the percentage of total circulation. Can some clever person get to do what I need?

    Suze

    (Sorry, I don't know how to post the script here with line numbers!)

    //

    This script adds printing of information labels to each graphic image. The labels are on a separate layer

    named "PercentageLabels" so that all these added labels can be removed again by simply removing

    the layer.

    //

    If you move or resize items, simply re-run the script to update the labels.

    //

    Before (re) start the script, you can define a paragraph style "SizeLabelStyle".

    This style will apply to all content on labels.

    //

    Before (re) start the script, you can set a style of object 'SizeLabelObjectStyle '.

    This style of object apply to all executives of the label - so if you want a specific background

    fill out or frame, do it through this object style.

    //

    You can change the units of the size label. I put in inches. Change the line below that has

    kUnitToUse - you can use:

    MeasurementUnits.CENTIMETERS

    MeasurementUnits.CICERO

    MeasurementUnits.INCHES

    MeasurementUnits.MILLIMETERS

    MeasurementUnits.PICAS

    MeasurementUnits.PIXELS

    MeasurementUnits.POINTS

    //

    By default the script will not attempt to label the "nested" images If you also want to label

    nested images (for example inline images, anchored frames, pasted images in the images,...) to change the line

    below to read:

    kLabelNestedItems = 1

    //

    If you want a specific image to stay without a label, you can use the Script label palette for

    assign a script called 'ignore' for this frame. The script will then not label this framework to the

    the title of the script is removed again.

    //

    Change the lines with kDontLabelImageFrames, kDontLabelTextFrames, kDontLabelOtherFrames

    below if you want to restrict labelling to only certain types of images: replace the '0'

    in "1" to enable these options.

    //

    Change the line with kShowImageFileName if you also want to display the names of the image in the

    size for the picture frames.

    //

    Small frames are not labelled - the cutoff point is currently a less than 0.1 inch high framework

    or 0.1 inch wide. You can change the cutoff point by adjusting the lines with kDontLabelBelowWidth

    or kDontLabelBelowHeight below.

    //

    var Girard;

    var gScriptFile;

    var gCaches;

    // ****************

    That's cheating spread automatically calculated

    var doc = app.activeDocument;

    doc.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.inches;

    doc.viewPreferences.verticalMeasurementUnits = MeasurementUnits.inches;

    PageWidth = doc.documentPreferences.pageWidth var;

    stucture var pagewidth = * 2;

    var spreadheight = doc.documentPreferences.pageHeight;

    var spreadsquinch = stucture * spreadheight;

    Alert ("the total measure of square inch of spread is:" + spreadsquinch);

    //******************

    VR;

    {

    If (app.activeScript instanceof file)

    {

    var gScriptFile = app.activeScript;

    }

    }

    catch (Girard)

    {

    }

    If (typeof (kLogLevel) is "undefined")

    {

    const kLogLevel = 5;

    const kMaxLogNestLevel = 5;

    const kLogToMessageBox = 0;

    const kLogToConsole = 0;

    const kLogToFile = 0;

    const kLogFileName = "PercentageLabels.log";

    const kIgnoreFrameLabel = "ignore."

    const kSizeLabelLayerName = "PercentageLabels";

    const kLabelNestedItems = 0;

    const kDontLabelImageFrames = 0;

    const kDontLabelTextFrames = 1;

    const kDontLabelOtherFrames = 0;

    const kUnitToUse = MeasurementUnits.INCHES;

    const kShowImageFileName = 0; This set to 1 to precede the name of the image file in the tag

    Below all of the measures are expressed in kUnitToUse (e.g. inches if MeasurementUnits.INCHES is used)

    const kRoundToDecimals = 2;

    The separator to use between objects - for example MyImage.jpg - 7.22 x 9,34

    const kSeparatorBetweenNameAndSize = "-";

    const kSeparatorBetweenHeightAndWidth = "H x"; "

    const kSeparatorAfterWidth = "W";

    const kDontLabelBelowWidth = 0.1; In kUnitToUse

    const kDontLabelBelowHeight = 0.1; In kUnitToUse

    const kLabelStyleName = "SizeLabelStyle";

    const kLabelObjectStyleName = "SizeLabelObjectStyle";

    const kLabelHeight = 0.6; In kUnitToUse

    const kLabelWidth = 2.5; Expressed in kUnitToUse (e.g., inches).

    }

    var gRunState =

    {

    logToMessageBox: kLogToMessageBox,

    logToConsole: kLogToConsole,.

    logToFile: kLogToFile,.

    functionNestLevel: 0,

    logFunctionEntry: true,

    logFunctionExit: true,

    logLevel: kLogLevel,.

    logFileName: kLogFileName

    };

    Main();

    // ****************

    function ConvertToFrame (thePageItem)

    {

    / * / / / LogEntry ("ConvertToFrame");

    var retVal = thePageItem.getElements () [0];

    / * / / / LogExit ("ConvertToFrame");

    Return retVal;

    }

    // ****************

    function CollectionToArray (theCollection)

    {

    / * / / / LogEntry ("CollectionToArray");

    var retVal = theCollection.everyItem () .getElements () .slice (0);

    / * / / / LogExit ("CollectionToArray");

    Return retVal;

    }

    // ****************

    function GetImageFile (pageItem)

    {

    / * / / / LogEntry ("GetImageFile");

    var imageFile = null;

    do

    {

    Try

    {

    pageItem = ConvertToFrame (pageItem);

    If (!) (("allGraphics" in pageItem))

    {

    break;

    }

    var allGraphics = pageItem.allGraphics.slice (0);

    If (allGraphics.length == 0)

    {

    break;

    }

    var chart = allGraphics [0];

    var graphic.itemLink = link;

    imageFile = new File (link.filePath);

    }

    catch (Girard)

    {

    }

    }

    While (false);

    / * / / / LogExit ("GetImageFile");

    return imageFile.

    }

    // ****************

    function GetImageName (pageItem)

    {

    / * / / / LogEntry ("GetImageName");

    var imageName = "";

    do

    {

    var imageFile = GetImageFile (pageItem);

    If (imageFile is nothing)

    {

    break;

    }

    imageName = imageFile.displayName;

    }

    While (false);

    / * / / / LogExit ("GetImageName");

    return imageName;

    }

    // ****************

    function GetOuterPageItem (pageItem)

    {

    / * / / / LogEntry ("GetOuterPageItem");

    var retVal = null;

    do

    {

    Try

    {

    retVal = pageItem.parent;

    If (retVal instanceof spread | retVal instanceof Page)

    {

    retVal = pageItem;

    break;

    }

    If (retVal instanceof character)

    {

    retVal = GetOuterPageItem(retVal.parentTextFrames[0]);

    break;

    }

    }

    catch (Girard)

    {

    retVal = null;

    }

    }

    While (false);

    / * / / / LogExit ("GetOuterPageItem");

    Return retVal;

    }

    // ****************

    function LogMessage (message, collapseLines)

    {

    If (gRunState.logToConsole)

    {

    $.writeln (message);

    }

    If (gRunState.logToFile)

    {

    var logFile = new file (gScriptFile.parent + "/" + gRunState.logFileName);

    var now = new Date();

    logFile.open ("a");

    logFile.write (now.toString () + ":"+ message + "\n" ');

    logFile.close ();

    }

    If (gRunState.logToMessageBox)

    {

    Alert (message);

    }

    }

    // ****************

    LogEntry (message) function

    {

    If (gRunState.logFunctionEntry)

    {

    If (gRunState.functionNestLevel < kMaxLogNestLevel) {}

    for (var idx = 0; idx < gRunState.functionNestLevel; idx ++)

    {

    message = "" + message;

    }

    Filled (message + "<", true);

    }

    }

    gRunState.functionNestLevel ++;

    }

    // ****************

    function LogError (message)

    {

    If (gRunState.logLevel > = 1).

    {

    LogMessage ("* ERROR *:" + message, false);

    }

    }

    // ****************

    function LogExit (message)

    {

    -gRunState.functionNestLevel;

    If (gRunState.functionNestLevel < 0)

    {

    LogError ("LogExit: unbalanced nesting of function");

    }

    If (gRunState.logFunctionExit)

    {

    If (gRunState.functionNestLevel < kMaxLogNestLevel) {}

    for (var idx = 0; idx < gRunState.functionNestLevel; idx ++)

    {

    message = "" + message;

    }

    Filled (message + ">", true);

    }

    }

    }

    // ****************

    function LogNote (message)

    {

    If (gRunState.logLevel > = 3)

    {

    LogMessage ("Note:" + message, false);

    }

    }

    // ****************

    function LogWarning (message)

    {

    If (gRunState.logLevel > = 2)

    {

    LogMessage ("WARNING:" + message, false);

    }

    }

    // ****************

    function Main()

    {

    / * / / / LogEntry ("Main");

    var savedUserInteractionLevel = app.scriptPreferences.userInteractionLevel;

    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;

    do

    {

    Try

    {

    activeDocument var = app.activeDocument;

    If (!.) (activeDocument instanceof Document))

    {

    LogError ("hand: activeDocument isn't a Document");

    break;

    }

    var savedHorizontalMeasurementUnits = activeDocument.viewPreferences.horizontalMeasurementUnits;

    activeDocument.viewPreferences.horizontalMeasurementUnits = kUnitToUse;

    var savedVerticalMeasurementUnits = activeDocument.viewPreferences.verticalMeasurementUnits;

    activeDocument.viewPreferences.verticalMeasurementUnits = kUnitToUse;

    var savedRulerOrigin = activeDocument.viewPreferences.rulerOrigin;

    activeDocument.viewPreferences.rulerOrigin = RulerOrigin.PAGE_ORIGIN;

    do

    {

    Try

    {

    ProcessFrames (activeDocument);

    }

    catch (Girard)

    {

    Alert ("the script encountered a situation that we don't know how to handle. "He received the error, says '" + Parker + "' in Main()"); "."

    }

    }

    While (false);

    activeDocument.viewPreferences.rulerOrigin = savedRulerOrigin;

    activeDocument.viewPreferences.horizontalMeasurementUnits = savedHorizontalMeasurementUnits;

    activeDocument.viewPreferences.verticalMeasurementUnits = savedVerticalMeasurementUnits;

    }

    catch (Girard)

    {

    Alert ("the script encountered a situation that we don't know how to handle. "He received the error, says '" + Parker + "' in Main()"); "."

    LogError ("Hand throw" + Girard);

    }

    }

    While (false);

    app.scriptPreferences.userInteractionLevel = savedUserInteractionLevel;

    / * / / / LogExit ("Main");

    }

    // ****************

    function ProcessFrames (doc)

    {

    / * / / / LogEntry ("ProcessFrames");

    var err;

    do

    {

    If (!.) (doc instanceof Document))

    {

    LogError ("ProcessFrames: doc should be a Document");

    break;

    }

    Try

    {

    var existingLayer = doc.layers.itemByName (kSizeLabelLayerName);

    existingLayer.id;

    existingLayer.remove ();

    }

    catch (err)

    {

    }

    If (kLabelNestedItems)

    {

    var pageItems = doc.allPageItems.slice (0);

    }

    on the other

    {

    var pageItems = CollectionToArray (doc.pageItems);

    }

    var frameReferences = [];

    for (var pageItemIdx = 0; pageItemIdx < pageItems.length; pageItemIdx ++)

    {

    do

    {

    var pageItem = pageItems [pageItemIdx];

    If (pageItem.itemLayer.name is kSizeLabelLayerName)

    {

    break;

    }

    var pageItem = ConvertToFrame (pageItem);

    If (instanceof TextFrame pageItem)

    {

    If (kDontLabelTextFrames)

    {

    break;

    }

    }

    ElseIf (pageItem graphic instanceof)

    {

    If (kDontLabelImageFrames)

    {

    break;

    }

    }

    on the other

    {

    If (kDontLabelOtherFrames)

    {

    break;

    }

    }

    If (pageItem.label.toLowerCase () is kIgnoreFrameLabel)

    {

    break;

    }

    var width = pageItem.geometricBounds [3] - pageItem.geometricBounds [1];

    var height = pageItem.geometricBounds [2] - pageItem.geometricBounds [0];

    If (width < kDontLabelBelowWidth)

    {

    break;

    }

    If (height, kDontLabelBelowHeight)

    {

    break;

    }

    frameReferences.push (pageItem);

    }

    While (false);

    }

    var sizeLabelLayer = doc.layers.add ({name: kSizeLabelLayerName});

    for (var pageItemIdx = 0; pageItemIdx < frameReferences.length; pageItemIdx ++)

    {

    Try

    {

    var pageItem = frameReferences [pageItemIdx];

    var width = pageItem.geometricBounds [3] - pageItem.geometricBounds [1];

    var height = pageItem.geometricBounds [2] - pageItem.geometricBounds [0];

    var labelItem = doc.textFrames.add (null, LocationOptions.BEFORE, GetOuterPageItem (pageItem));

    labelItem.itemLayer = sizeLabelLayer;

    var boxsquinch = width * height

    var boxpercent = (boxsquinch / spreadsquinch) * 100

    var roundpercent = Math.round (boxpercent)

    var labelText = "";

    If (kShowImageFileName)

    {

    var imageName = GetImageName (pageItem);

    If (imageName! = "")

    {

    labelText += imageName + kSeparatorBetweenNameAndSize;

    }

    }

    labelText += RoundString (height, kRoundToDecimals) + kSeparatorBetweenHeightAndWidth + RoundString(width, kRoundToDecimals) + kSeparatorAfterWidth + ' \r\n'+ roundpercent + '% ';

    labelItem.contents = labelText;

    xPos = pageItem.geometricBounds var [1];

    yPos = pageItem.geometricBounds var [0] + kLabelHeight;

    labelItem.geometricBounds is [Posy, xPos, yPos + kLabelHeight, xPos + kLabelWidth];.

    Try

    {

    labelItem.parentStory.characters.everyItem () .appliedCharacterStyle = doc.characterStyles.item (0);

    }

    catch (err)

    {

    }

    Try

    {

    labelItem.parentStory.paragraphs.everyItem () .appliedParagraphStyle = kLabelStyleName;

    }

    catch (err)

    {

    }

    Try

    {

    labelItem.appliedObjectStyle = doc.objectStyles.itemByName (kLabelObjectStyleName);

    }

    catch (err)

    {

    }

    }

    catch (err)

    {

    }

    }

    }

    While (false);

    / * / / / LogExit ("ProcessFrames");

    }

    // ****************

    function RoundString (numVal, decimal)

    {

    / * / / / LogEntry ("Round");

    var retVal = Math.round (numVal * Math.pow(10,decimals)) + "";

    retVal = retVal.substring(0,retVal.length-decimals) + "." + retVal.substring(retVal.length-decimals);

    / * / / / LogExit ("Round");

    Return retVal;

    }

    What do you mean?

    var myDoc = app.activeDocument;
    var mySpreads = myDoc.spreads;
    var myRectangles = myDoc.rectangles;
    var myImages = 0;
    for (var i = 0; i < mySpreads.length; i++) {
        var mySpreadWidth = 0;
        var mySpreadHeight = myDoc.documentPreferences.pageHeight;
        for (var j = 0; j < mySpreads[i].pages.length; j++) {
            mySpreadWidth += myDoc.documentPreferences.pageWidth;
            }
        var mySpreadArea = mySpreadWidth * mySpreadHeight;
        var myImages = mySpreads[i].rectangles;
        var myTotalImageArea = 0;
        var myIndividualImageArea = [];
        for (var j = 0; j < myImages.length; j++) {
            var myImageGeometricBounds = myImages[j].geometricBounds;
            var myImageWidth = myImageGeometricBounds[3] - myImageGeometricBounds[1];
            var myImageHeight = myImageGeometricBounds[2] - myImageGeometricBounds[0];
            myIndividualImageArea[j] = (myImageWidth * myImageHeight);
            myTotalImageArea += myIndividualImageArea[j];
            }
        for (var j = 0; j < myIndividualImageArea.length; j++) {
            alert("Image percentage of total images on spread " + (i + 1) + " = " + (myIndividualImageArea[j] * 100) /myTotalImageArea);
            }
       alert("Total image percentage on spread " + (i + 1) + " = " + myTotalImageArea);
       }
    

Maybe you are looking for