Detecting the resolution of external images.

Is there any way to detect the resolution of the external jpg
file?

You'll need to use a SS script, like PHP. If you do use PHP,
it's pretty
easy though - have a look at the getimagesize() method in the
PHP docs -
it'll do just what you need.
Dave -
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/

Similar Messages

  • Does any body knows how to detect the resolution of an inserted image in word?

    Does any body knows how to detect the resolution of an inserted image in word?

    I'm not sure I understand your reply but when you insert images into Word that are larger than will fit on the page, they are automatically compressed. If you right click and select Size and Position you can restore it to 100% but you will not see all the image.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • How can I get the resolution of an image file in JSP?

    how can I get the resolution of an image file like jpg,gif,png in JSP ?

    Hii,
    If by the resolution, u mean size..this is how u can come to know....
    String add = "path/to/some.jpeg";
    javax.swing.ImageIcon chain = new javax.swing.ImageIcon(add);
    int height = chain.getIconHeight();
    int width = chain.getIconWidth();
    Hope that helps.
    regards
                   

  • How is the resolution variable or when would we change the resolution of an image and why?

    How is the resolution variable or when would we change the resolution of an image
    and why?

    It all depends on the output:
    * for viewing on screen 90 -120 ppi
    * for printing on a laser printer 180  -300 ppi
    * for printing on a desktop printer 240 - 300 ppi
    Some people claim 360 ppi is optimum but I don't see any difference compaired to 300 ppi at least not with the naked eye...

  • How to detect the size of an image

    Hi,
    I have a servlet which grabs an image (jpg or gif) from a BLOB stored in my database and sents the image back to the client through the ServletOutputStream. This all works good and the image is presented nicely. However, I now want to have my servlet detect the size of the image, and if it is too big resize the image and return it.
    As I am new to images in JAVA I am unsure how to do this and what tools to use for it. I found some information on JAI, but this seems way to elaborate for what I need. Please let me know if anyone knows how to do this.
    Thank you and regards,
    Joost Schouten

    This code figures out the size of any object in bytes. I am not sure about resizing the image though..
    public int getSerializedSize(Object object)
           try
              ByteArrayOutputStream baos = new ByteArrayOutputStream();
              ObjectOutputStream oos = new ObjectOutputStream(baos);
              oos.writeObject(object);
              byte[] bytes = baos.toByteArray();
              oos.close();
              baos.close();
              return bytes.length;
           catch(Exception e) //not good
              e.printStackTrace();
           return -1;
         }Rishi

  • Making the resolution of jpeg image higher

    Hello, I am wondering how I go about editing a jpeg image i saved from an online unknown source so that the resolution is high enough so that when I go to print it on a canvas at walgreens it is not distorted or blurry. Keeps telling me low quality, and resolution is to low to print at quality level. Please help. step by step as i am new to photoshop

    Adobe's new Large Document Format (PSB) adds support for Photoshop documents larger than 2GB. The documents you save this way can't be opened in earlier versions of Photoshop -- they can only be opened in Photoshop CS or Photoshop CS2.
    Before you can use the Large Document Format option, you'll have to open Photoshop's file handling preferences and turn the feature on.
    Mac: Photoshop > Preferences > File Handling
    Windows: Edit > Preferences > File Handling
    Once the option is activated in preferences, the Large Document Format becomes an option in your standard Photoshop save dialog box.
    Large Document Format also adds support for savings images greater than 30,000 pixels in width or height -- something the original Photoshop format did not permit. The new PSB format now supports images up to 300,000 pixels in width or height.

  • Setting the resolution for external monitor

    Hello all,
    I just purchased a ViewSonic vx2025wm 20.1" external monitor for my PowerBook G4 1.5Ghz 12". I've scoured the discussions regarding my question, but couldn't seem to find it. So I'll post it here...
    I've successly connected the ViewSonic to my PB and the image seems to display fine in "spanning" mode (ie images span over two screens). However, when I try to "mirror" (ie have the same view show on both screens) the external monitor displays a 1024x768 resolution (the PB displays this as well, but that is the optimal resolution for the 12"). My question is this: how can I mirror while having each screen display its optimal resolution (the optimal resolutions would be 1680x1050 for the External monitor, and 1024x768 for the PB).
    Thanks in advance for any wisdom on this!
    PowerBook G4 1.5 Ghz 12 inch   Mac OS X (10.4.6)   1.25 Gig RAM

    Thanks for the quick response -- and one follow-up question. Will turning mirror off (which, if I understand correctly, will place the displays in spanning mode) cause a strain on my PB? Since the PB will be supporting the displays of both the external monitor plus its own display. Does that make sense? I actually read something related to this in these discussions which is why I brought it up. I will try to locate that discussion and place a link in this thread so I can better explain.

  • Crop Tool Confusion When Used to Change the Dimensions (but not the resolution) of an Image

    Picture this.  You have a real photograph in front of you.  Its dimensions are 7x5 inches, and you want to cut out of that photograph, a 4x4” square.  You’re not bothered by the rest of the photograph, you’ll discard that, so you mark your 4” square on the photo at the place you want to keep, and with a pair of scissors, cut (crop) the photo accordingly.
    Using the analogy above, I’m having difficulty achieving what should be an extremely simple operation in Photoshop CC 2014.  I have an image which is 5000px wide x 3800px high at a resolution of 240px/inch.
    Using the “W x H x Resolution” option of the crop tool, I want to crop the image to 2100px x 2100px, maintaining the original image resolution of 240px/inch.  No matter what settings I use in the crop tool toolbar, the crop tool insists on sizing the crop by assuming the full length of the shortest axis on my image.  In this instance the vertical distance.  If I initiate the crop, I do end up with a 2100px square image at 240px/inch, but the shortest original dimension (and hence pro-rate the image) has been rescaled and resized.
    What I was expecting to see is the crop tool outline simply showing a square which represents 2100px a side at 240px/inch relative to the image I’m viewing.  I would then drag the outline to the position where I wanted it, and then crop the image.  This isn’t happening.  I can manually resize the crop area with my mouse, and rely on the floating information pop-up to check the actual crop dimensions, but this seems counter-intuitive (not to mention difficult when attempting a pixel accurate crop).
    Strangely enough, if I change the size of the crop window by using the mouse, and right click inside the crop area, the context menu has the option “Use Crop Box Size & Resolution”. Selecting this option updates the toolbar with the chosen crop size and everything is as expected.  Surely, this is what the crop toolbar should do in the first place?
    Am I missing something here? I may not perform this particular operation very often in Photoshop, but I’m sure it worked the way I thought is should before!
    Regards,
    Steve

    What I was expecting to see is the crop tool outline simply showing a square which represents 2100px a side at 240px/inch relative to the image I’m viewing.  I would then drag the outline to the position where I wanted it, and then crop the image.
    You'd better use the Marquee tool for this. Set the desired number of pixels in the options bar. Click and drag and finally Image > Crop.

  • DETECT THE OBJECT IN MONOCHROME IMAGE

    I want to detect an extra object present in my product but it has the same color as the background.  using thresholding and  particle analysis i got the detection but the resulting values are too small that sometimes this procedure leads me to  make the false rejection for my products.
    In the attachment one of the good image and a bad image i.e. image with the extra object are provided. 
    Attachments:
    good.png ‏563 KB
    bad.png ‏575 KB

    It looks like the defective side has a distinct bright line.  If most defects are similar to this, you could use a Find Edge tool and just set the limits so if any edge is found, call it a reject.  If no edges are found, then call it good.  This really depends upon how consistant your background is.
    The other option might be to count pixel values in the 200 to 255 range with a region of interest (ROI) set in this area.  Then, set a limit based on a good part background (say no more than 20 pixels found in a ROI that contains 500 or so total pixels).  I've used this method in the past, but the set limit is quite sensitive to the area of the ROI is low contrast conditions.   

  • How i Reduce the resolution of an image?or image bytes

    Hi all,
    I want to reduce the size and resolution or bytes of an image?Is anyone knows the solution of my problem??
    Plzz help me out.
    Thankss

    Supposing yourImage is an Image object or any of the Image class descendants such as BufferedImage, try:
    Image scaledImage = yourImage.getScaledInstance(int width, int height, int hints);hints can be Image.SCALE_DEFAULT / SCALE_FAST / SCALE_SMOOTH / SCALE_REPLICATE / SCALE_AREA_AVERAGING depending on the result you want.
    See the API reference for details:
    [http://java.sun.com/j2se/1.5.0/docs/api/]
    Specificly Image.getScaledInstance(int, int, int):
    [http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Image.html#getScaledInstance(int,%20int,%20int)]
    The BufferedImage class is handy:
    [http://java.sun.com/j2se/1.5.0/docs/api/java/awt/image/BufferedImage.html]
    Cheers/ jomik

  • [solved!] Running a command to detect the current resolution of X?

    I want to write a script that detects the resolution I'm running and echo it to a configuration file.  I've heard of xrandr, but when I run it, I get ...
    [max@pwn rigsofrods]$ xrandr
    Xlib: extension "RANDR" missing on display ":0.0".
    RandR extension missing
    This script will be a part of a PKGBUILD, so I'm hoping there's something really simple and seamless that I could use for just about anyone's computer regardless of configuration.
    Last edited by synthead (2008-12-24 00:33:27)

    Haha.  I made a better solution with the PKGBUILD, actually   Rigs of Rods isn't the "smartest" linux game so lots of configs are in the program directory.  Just like any other big game, I put it in /opt, so there were a lot of permission issues and complications when regular users tried to configure the game.  What I ended up doing is replacing the blank config it comes with with a very basic 800x600 windowed configuration, and if a user runs RoR, a little script makes a hidden folder and copies it to it.  From there, that section of the configuration utility edits the ~/.rigsofrods configuration   And as you would expect, its in plaintext, so you can edit it by hand too.
    But not ignoring all the other configs that have to be in /opt/rigsofrods, I made a group called "ror" that allows rw access to config files and allows you to fully configure the game.

  • Set exported resolution for each image within InDesign

    I'm generating a document in InDesign destined only for the screen (as a PDF) and I'm wondering whether in CS6 the user can set the exported resolution separately for each image. i.e click on a image and set the resolution for that image. Reason: to allow end-viewers to zoom in on certain images and retain quality.
    And while I'm on the subject of changing resolution, a few years ago someone wrote a script for me (in response to a post), that when you clicked on an image within InDesign, resampled the original to 300 dpi, saved it, and made the necessary adjustments in InDesign so the image stayed the same size.
    Can CS6 do that? Or do I need to dig up the old script?

    > ... destined only for the screen (as a PDF) ...
    The developers of PDF will thank you for that statement!

  • Setting resolution of an image.

    Is there a way in interMedia to set the resolution of an image using the process() method?
    I need to catalog images based on their pixels/inch can't seem to find that info using the ORDImage object.
    tks,
    Rodger...

    Can you be a bit more specific?
    I would guess that the pixels per inch would depend upon the display/printer characteristics and not the image.
    The image width and height are specified in pixels, but the size of the image would depend upon how it is displayed and how many pixels per inch the monitor or printer supported.
    Larry

  • Reducing the Resolution of a Referenced Original Image

    I made the mistake of taking photos in very high resolution, and then importing the originals into my Aperture Library as referenced images.  Now my hard drive is completely full (and I've already disabled and deleted Previews), so I'm trying to reduce the resolution of the original images using Aperture.  After much reading, it seems that I'll need to Export Versions at a reduced size, Import the new versions into Aperture, and Delete the old originals.  Seriously?!?  Before I venture down this horrific path, please let me know if there is an easier solution.  Thanks!

    As Terence said -- the easy thing is built-in and recommended: select the Images whose Originals you want to relocate, and relocate them to external drives.  External drives are _bargains_ right now.  I recommend -- seriously -- buying them in triplicate: one as your "working data" store, and two to use as back-ups (never have all three in the same physical location).
    Storage is so cheap, on fact, that even though for this one set of pictures you recorded a higher resolution than you need, I still wouldn't bother "down-sizing" those Originals -- particularly if you have made _any_ changes via adjustments or metadata.  Change your camera settings, and just live with a little extra data spinning around.
    Here is the page in the User Manual on relocating your Originals (click from the contents listed at the top).
    Note, too, the following, from the page Basic Components of Aperture:
    Using referenced images in your Aperture system provides a number of substantial benefits to your photography workflow. For example, you can incorporate your existing portfolio of images into Aperture without changing the current location of the files. Importing images by reference does not result in a duplication of your image files in the Aperture library, thus saving hard disk space. You can also connect and disconnect hard disks holding your referenced images’ masters as you need them. This allows you to keep masters for less-used images offline or to make specific types of images available for editing or adjustments as needed. Using referenced images in your Aperture system lets you build a flexible image management system customized to your work style. (Emphasis mine.)
    For my personal Libary, I keep 4★, 5★, Portfolio Images, and anything recorded in the last 45 days on my laptop's system drive.  Every other Original is relocated to a 2 TB external drive.
    I find Previews _very_ useful (both in and out of Aperture), and even rely on them as a sort of emergency back-up of last resort.  I recommend you rebuild yours.

  • How can I set the resolution of my external display to 1280x800?

    Hi, I'm using a Wacom Cintiq 12WX external pen tablet display with a 24" iMac.
    The recommended resolution for this Cintiq is 1280x800. But when I go to System Preferences>Displays set the resolution of the display, the only available options for "Wacom Cintiq 12WX" are:
    640x480
    800x600
    832x624
    848x480
    1024x768
    1024x768 is my nearest option, but it has a different proportion than the display's physical shape--resulting in a slightly stretched display. Because I work with graphic design, this is not exactly desirable...
    None of the other resolutions have the same proportion as 1280x800, so a stretch seems inevitable; not even working with a smaller resolution will give me the desired ratio.
    So my question is, is there any way to choose resolutions other than those listed in the "Display tab" of System Preferences?
    I also noticed that I have the option to rotate the tablet screen 90 degrees; when I do this, the option 800x1280 becomes available, but of course it's sideways...
    Any help at all would be very greatly appreciated!

    thund3r0us wrote:
    Thank you for your help.
    I installed the update you suggested, but nothing has changed in my Cintiq 12WX Display menu in System Preferences.
    Which update ?
    The OSX update or the driver update or both ?
    Might be neccessary to reinstall the Wacom driver after the OSX update.
    And I concur with Kenichi, if all things fail contact the Wacom Support.
    That thing has to work as advertised.
    Good Luck
    Stefan

Maybe you are looking for

  • Why doesn't my iTunes content show in Library? Also, How can I sync music purchased on my iPhone to my PC's iTunes Library?

    I have been having several annoying problems with iTunes for the past several months... 1) Library content not showing after folder relocation: First, in order to free up space on my C drive, I wanted to relocate my iTunes folder to a new 1TB hard dr

  • HP Smart Web Printing Breaks Firefox

    HP Smart Web Printing Breaks Firefox Navigation bar. OS: Windows 7 Browser: FireFox 3.5.6 Application: HP Smart Web Print Version 4.6 After installing it basically broke the Firefox browser bar. Here is the FriendFeed Conversation

  • ApEx collection problem

    Hi there, I'm trying to create a collection within an ApEx process. My intention is to create a cursor (only 1 in the example but I want to add more in the future) and fill the collection with the data the cursor finds. However the application gives

  • Why is the "streaming' Adobe Photoshop only for students on Chrome OS or  WIndows?

    Considering Adobe hasn't acknowledged the Linux crowd that has been petitioning for a port for years, the announcement of "streaming' Adobe Photoshop for only students on Chrome OS or  Windows doesn't surprise me in the least.  Is this a beta only de

  • Error doing simple navigation in a JSP page

    Hi When I do a click on the login.jsp page of a project, the next page do not show. Instead of that, JBoss shows the next dump in its console:      at javax.faces.component.UIComponentBase.isIdValid(UIComponentBase.java:1050)      at javax.faces.comp