Find images resolution

Hi Forum,
I have tried to get alert for the links if it has 250 or 300 resolution. But if the pdf is placed, the script is replying error message.
"object does not support the property or method actualPPi"
How can i omit the check for PDF and continue to find other images resolution and alert.
var doc = app.activeDocument;
var graphics = doc.allGraphics;
var image, horRes, verRes;
for (var i = 0; i < graphics.length; i++) {
     image = graphics[i];
     if(image.actualPpi[0] ==300 ||
     image.actualPpi[0] ==250){
alert ("images are in 300 & 250 dpi");                 
thanks in advance forum...

hi -hans-
thanks for the quick reply,
on the flip side of it, it tried to check only for the "Grayscale" images. please see and if you can help on this...
var doc = app.activeDocument;
var graphics = doc.allGraphics;
var image, horRes, verRes;
for (var i = 0; i < graphics.length; i++) {
     image = graphics[i];
     if(image.imageTypeName == 'Grayscale' &&
     image.hasOwnProperty('actualPpi') != false &&
     image.actualPpi[0] ==250){
alert ("images are in 300 & 250 dpi");                

Similar Messages

  • Finding image resolution in a PDF?

    I am currently working to perform some maintenance for an app that formats and resizes documents, usually PDFs. The problem happens when certain files are uploaded with an unusually large image resolution (according to the Preflight Properties, 2222.222/2222.222 pt/in). The documents with this resolution come in with file sizes of 36"x24" and end up formatted to 8.5"x11". This leaves the text and a lot of information unreadable.
    I am using Visual Basic with iTextSharp to interact with the PDFs that come in. I'm able to find the width and height in points of the document without issue. Finding the image's width/height pixel count is what is giving me fits.
    Is there any way in iTextSharp that I can determine the pixel count for the width/height of a PDF Image, or am I heading down a dead end street here?
    Thanks in advance for any help you can provide.

    I hate to reply again, but I'm still stuck. I've been through the SDK and documentation and have had no luck finding anything to help solve this problem. I don't really need to extract the image per se, I just need to find the resolution of it. Could you possibly point me in a definitive direction in the SDK/Documentation that I could use? There are a couple examples that deal with Preflight but none dealing with the image in the PDF or its properties.
    Thanks in advance.

  • How to find out the image resolution in illustrator?

    How to find out the image resolution in illustrator cs through javascript or vbscript?
    Thanks,
    Prabudass

    Anyone please help me, how to find out the embedded image resolution in illustrator file through script.
    Thanks,
    Prabudass

  • Where do I find the image resolution in iPhoto '09

    Where do I look in iPhoto '09 to find the resolution of a photo?

    Are you referring to the "dpi" setting for the image?  That's not relevant until you set a print size.  DPI is dots per inch so you need to divide the width of the image in pixels (dots) by the width of the print (inches) to get the resolution of that print.
    This will give you more info on that: The Myth of DPI.
    Many cameras will set the dpi in the metadata at 180 dpi.  iPhoto changes it to 72 dpi as that's generally the screen resolution of many monitors. But as described above it's meaningless until you go to print the image.
    OT

  • How do I change the image resolution of a photo?

    Hi..,
         I am the beginner in Photoshop.
         I want to change one image resolution from 72 dpi to 300 dpi.
         So, I search and got one pdf for change the resolution of the image. In that they mention, take the "Printscreen" of the image and paste in the photoshop and change the mode(Index - flatten) and change resolution via the "Image -> image size -> Resolution".
         Like that i did, it changed correctly.
         After that I Open one already saved image file in Photoshop and do that same steps but the resolution was not changed.
    So, now how to change that saved image resolution to 300 dpi...??
    Regards.,
    VISWA

    Viswa,
    To find the current resolution of your image, follow these steps:
    With your image open in Photoshop, Image > Image Size (Like you've already done earlier).
    Check the resolution as shown above. If it doesn't show 300, enter 300, hit OK and 'Save' your image.
    Open the file and check again. If it still shows 72, post back with more details of the type of file you're trying to open in Photoshop and if possible, a screenshot so we can help.
    -ST

  • Continuous tone image resolution lower than specified

    The following message was posted in the incorrect forum; no legitimate solution to the problem was ever posted. I am re-posting it, as this is the same exact problem I am having, right down to the OS and version of Acrobat. Could someone please explain to me what this means and whether or not I should be concerned about it? I will also get two different kinds of results... one is a single number effective ppi on this error, such as 199, (which results in 200ppi if run through PitStop), and a two-number effective ppi, which we haven't been able to decipher, such as 501.357/179.55ppi (which should be a hi-resolution image).
    Help?
    Amy Carolyn Watson
    >
    >
    >Nikola Viereckel - 09:45pm Dec 9, 2007 Pacific
    >
    >Hi - I have recently discovered the above error message when I
    >check my distilled press quality pdf in preflight. I am using
    >a PC and Version 7.0 of distiller and acrobat. The images are
    >300dpi and are in my documents at 100% or lower, so there should
    >be no resolution issues. The pdf itself looks fine, but the
    >preflight does not. I find if I export out of InDesign (CS2)
    >then I do not get the same error message, but this is not my
    >preferred way to create pdfs for print.
    >
    >Any ideas? I the only thoughts I have had is to reinstall
    >the program. Thanking you in advance for your help.
    >Cheers
    >Nikola

    > All text should export as vector, since it's all on a layer above any kind of image.
    Is there any transparency in the text, though? If you float text over
    an image with transparency, it MUST be exported as an image. If it is
    floated over vector art with transparency, it MIGHT.
    It's easy to assume that just because something is on top, it doesn't
    ever need to be flattened. This is not in fact true.
    >
    >I am a little concerned: is this a flaw in the Acrobat Program?
    You mean in its preflight? Unlikely, it isn't rocket science to
    calculate ppi, so the numbers are probably right.
    >
    >Where is this "Continuous tone image resolution" turned on/off? Why is it important?
    That's probably a reference to Distiller settings. I think we've
    established that you aren't using Distiller.
    >
    >Is InDesignCS2 flattening to low transparency settings, even though my settings dictate high?
    You'd probably need to ask in the InDesign forum. But bear in mind
    that the flattener is free to use lower resolution if it thinks that
    is all that is needed for particular effects.
    Maybe you could reopen the PDF in Illustrator, and use that to select
    the images in the flattened page. Might illuminate what is going on.
    Aandi Inston

  • Low image resolution in ipad

    I had the new iPad for 3 months now but recently when emailing photos taken with the iPad to friends has been changed from 1936x2592 to 240x320. I couldn't find any settings to change the image resolutions. I am not sure why the resolution is being compress while emailing to people.

    Thanks for your reply
    The issue is the pictures (e.g. employee photos) are saved in Database as BLOB data type.
    The report is loading employee photo into the report (e.g. employee card), but the loaded picture is coming up with much less quality than the original.

  • Change the image resolution through iPhoto

    Does anyone know how to change the image resolution through iPhoto? I know it can be done in other image editing software, but I have yet to find it as an option in iPhoto.

    Hi Rachel,
    There is no option within iPhoto.
    Lori

  • Setting Image resolution of the images created by Powerpoint conversion service using PictureRequest class

    I am using PictureRequest class to get the images of the presentation as,
    PictureRequest request = new PictureRequest(inStream, ".pptx", PictureFormat.Png, outStream);
    IAsyncResult result = request.BeginConvert(SPServiceContext.GetContext(siteCollection), null, null);
    request.EndConvert(result);
    After getting the response from the PictureRequest if I check the image size (in this case png) it has the resolution of 720x540. I want bigger resolution images. I searched all over the sharepoint central administration but could not find any setting related
    to Powerpoint conversion service which may allow to set the desired image resolution.
    Could you please anyone suggest where I can specify the required resolution?
    Many thanks in advance!

    Hi,
    According to your description, you want to convert PPT file to PNG file in a specific resolution.
    There is no such OOTB settings in PowerPoint conversion service can meet your requirement. In
    PictureRequest object, there is also no related method can set the resolution of the converting image.
    As a workaround, I would suggest you do the conversion outside SharePoint, there will be more options available to handle the properties of the converted images.
    The links below about with code demos about how to convert PowerPoint Slide to Image for your reference:
    http://www.free-power-point-templates.com/articles/c-code-to-convert-powerpoint-to-image/
    http://www.codeproject.com/Articles/10632/Export-of-PowerPoint-slides-to-high-quality-Bitmap
    Best regards
    Patrick Liang
    TechNet Community Support

  • Iphoto 6  & image resolutions

    what format, jpeg, tiff, psd is the best when importing photos into iphoto 6 from photoshop cs? does the image size of a photo in photoshop stay the same in iphoto once its imported? where do i find the resolution for am image in iphoto? what resolution works best for a photos being placed in an ibook?
    thank you

    cben:
    Welcome to the Apple Discussions. Tiff is a lossless format but extremely large. If you're coming from Photoshop first, I would use the Photoshop format as you can then add layers and do all your edits in iPhoto via Photoshop and keep essentially lossless files.
    iPhoto does not change the resolution of photos although the file size changes for some reason. If you export a file from iPhoto and look at it in PS it will show a dpi of 72. But if you look at the size in inches it will be much larger than the original jpg in iPhoto. For example: 1600 x 1200 @180 dpi would be 8.88" x 6.66". After going into and out of iPhoto it would be reported by PS as 1600 x 1200 @ 72dpi but the size in inches will be 22.2" x 16.6". The total number of pixels will be the same.

  • Problem with image resolution with larger screen size

    I was working on Basic Lens Sample (Basic
    Lens Sample) for windows phone 8 App. In this the camera by default sets to default highest resolution.
    Just had couple of questions on this:
    1.) How to change basic settings like resolution,ISO etc.,in this app, because during initial settings
    it only takes default value and when I try to change that it throws an error. Also a code comment is written during initialization of camera to take only these default values. So when to change these settings and how?.
    2.) How to adjust resolution for phablets having 6" screen. Like when I run the code in Lumia 1320,
    the image resolution is not that good and it breaks. So how to adjust screen resolutions for catering different smartphones with different resolutions and screen sizes.
    Any solution or suggestions or snippets is very much appreciated.
    Thanks In Advance.

    Hello,
    For you first question, we can use
    GetAvailableCaptureResolutions method of PhotoCaptureDevice to get the available resolutions in device. That code sample returns the largest resolution by default, you just need to choose an appropriate one. You can find it in CameraController class in
    Models folder in the project.
    For you second question, I tested the sample in lumia 1320, I didn’t see the image broken.
    >> So how to adjust screen resolutions for catering different smartphones with different resolutions and screen sizes.
    You can get an appropriate resolution image and let the OS downscale it for you. You can find the support resolution in the following link. Go to Supported resolutions section.
    http://msdn.microsoft.com/en-us/library/windows/apps/jj206974(v=vs.105).aspx.
    If you want to display the whole large resolution image in lower resolution device, I think you can use
    ScrollViewer control. Use Application.Current.Host.Content.ActualWidth and ActualHeight properties to get the device resolutions, and then you can know if your app is running on a lower resolution device.
    Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. Click HERE to participate
    the survey.

  • Calibrating image resolution in CS5-CS6

    I am teaching a class to create a courtroom display.  I have a ppt from the FBI Lab that told me to take two fingerprints, calibrate the image resolution and find a common denominator before i can proceed.  I am new to Photoshop and am not sure where i calibrate image resolution or how.

    Thank you for responding. Someone from Foray contacted me and explained what to do. They want the image size of two photographs to be as close as possible to the same. If there is disparity, I am to find a number in pixels that is somewhere between the high and low of the two photos…a common denominator. When the photos are resized to that resolution they should fit on top of each other almost identically. 
    [contact information removed by moderator]

  • Image resolution in InDesign CS4 js

    Hi, is it possible to find out image resolution directly from InDesign, or do I have to open the file in Photoshop to do it.
    Thank you.
    Yulia

    var doc = app.activeDocument;
    var graphics = doc.allGraphics;
    var image, horRes, verRes;
    for (var i = 0; i < graphics.length; i++) {
         image = graphics[i];
         try {
              // The resolution of a graphic after it has been resized.
              horEffRes = Math.round(image.effectivePpi[0]);
              verEffRes = Math.round(image.effectivePpi[1]);
              // The native resolution of a placed graphic.
              horActRes = Math.round(image.actualPpi[0]);
              verActRes = Math.round(image.actualPpi[1]);
              $.writeln((i+1) + " - " + image.itemLink.name);
              $.writeln("Effective resolution - " + horEffRes + "x" + verEffRes + " ppi");
              $.writeln("Actual resolution - " + horActRes + "x" + verActRes + " ppi");
         catch (err) {
              // vector graphic
              $.writeln((i+1) + " - " + image.itemLink.name + " - Resolution is unavailable");
    }

  • Where can i find the resolution of a photo? I need to change it to 102

    where can i find the resolution of a photo in iphoto? How can I change it to 102?  I see is the pixel  width and height, along with the mb/kb size for photo info; I need to change the resolution and size for submission.

    Short answer: the dpi (or resolution)  is set when you decide what size you're printing at.
    Long Answer: Dpi means nothing in the digital world of your computer. There are no "inches" to have "dots per..." Size is measured in pixels. That's the same on your camera. It doesn't take 10 x 8 or 6 x 4 shots. It takes shots measured in megapixels. For instance 4,000 x 3,000 is a 12 megapixel camera.
    Using that example, that shot from that camera has 12 million pixels. So that's how many "Dots" there are. To decide the ratio of dots per inch, you now need to decide the "inches" part. And that's printing.  Print at 10 x 8 and the dpi will be 4,000/10 or about 400 dpi. At 6 x 4 then it's 4,000/6 or 660 dpi. Work the other way: Print at 300 dpi and the resulting image will be about 13 inches on the longer side.
    So, your photo as a fixed number of pixels. Changing the dimensions of the print will vary the dpi, changing the dpi will vary the dimensions of the print.
    For more see http://www.rideau-info.com/photos/mythdpi.html
    Regards
    TD

  • Merge to HDR Pro from Lightroom changing image resolution

    Image resolution in PS from a RAW LR transfer is 300ppi but I notice today the final HDR image from a LR transfer of three files is 240ppi.  My preference in PS is set to 300ppi and I don't find a way to set a HDR resolution preference.  I want my final HDR image to be 300ppi - how do I get this?

    Does turning off »Use Graphics Processor« in the Performance Preferences and restarting Photoshop have any bearing on the issue?
    Have you tried both reducing and increasing the Memory Usage in the Performance Prefences?
    I tried to work on the exposition of the three photos, but that didn't work.
    What does this mean?
    Are you using actual bracketed shots?

Maybe you are looking for