DW CS5 displays image wrong color

I have an image created in Photoshop CS5 which I am using as a header image in DW CS5. I have made sure the hex code for the clolor matches in both programs but DW shows the wrong color but when I view the page in Firefox or Safari the color displays correctly. I really can't understand why DW does not display the correct color since the color codes are the same as what is shown in Photoshop and displays correctly in Photoshop.
Any help is appreciated.

I guess its OK to reply to my own question! The problem is the jpg file. There is no problem when the image is saved as png file. All the browsers and DW display the color correctly now. I still would appreciate any comments that might shed some light on the differences between jpg and png that might cause something like this.
Thanks

Similar Messages

  • InDesign Cs5 displayed with wrong resolution (doesn't work in 1920x1080)

    Hello everybody
    I've encountered a resolution issue concerning Indesign CS5 (and Illustrator CS5). The problem only concerns my brandnew laptop running under Windows 8.1 (Screen Resolution 1920x1080). On my other, older PC (with the same native screen resolution), but running under Windows 7, the problem doesn't exist.
    The problem consists in the fact, that Indesign CS5, even though everything else is displayed in 1920x1080 is displayed in some lower resolution, making a good workflow impossible, *** the texts I write are not very readable if I want the whole page displayed (and it's ugly). In other Adobe CS5 Apps, like Photoshop CS5, this problem does not occur. It doesn't also occur in the trial version of Indesign CC, but I cannot afford paying over 30€ per month just to be able to work with an acceptable work resolution. (That should really be included in the price I paid for CS5.)
    To see what I mean, here are the links to 2 screenshots taken of those 2 Apps, with exactly the same screen settings:
    https://dl.dropboxusercontent.com/u/4786930/Indesign%20CS5%20Screenshot%20Windows%208-1.jp g
    https://dl.dropboxusercontent.com/u/4786930/Photoshop%20CS5%20Screenshot%20Windows%208-1.j pg
    Is there any workaround known for this problem? It is driving me crazy
    Best regards,
    Frank

    What's bizar is that other applications work perfectly fine at the right resoution (like photoshop CS5 for example). The screen runs at its native resolution. The rest of the program works "fine" (except its uglyness because it somehow doesn't display in 1920x1080 even though that are the native settings of the screen.)
    What do you mean exactly by running the laptop at 100% for the UI? I did not use any other programs and the laptop is brandnew. Actually CS5 is the first application I installed...

  • PPro CS5: Titles have wrong color and thickness in Timeline

    Hi there
    if i'm writing a Title in PPro CS5, everything is ok and like in PPro CS4 in the Title-Window. Then i'm changing to the Timeline and the Title gets bright and thin in the Program Window. The Title has not it's origin color, as selected in the Title-Window. Also it has a different thickniss, it is hard to read on TV.
    Here is a Screenshot of the Title in the Title-Window (picture above with green border) and the Title in the Timeline-Program Window (picture below with red border):
    http://666kb.com/i/bj4dbxa1nxbv53s6b.jpg
    Anyone here has this problem too?
    Thanks.

    I found out something important. Having the Titles rendered with the Mercury Playback Engine ON causes the problem. Turning it OFF and the titles are the same as shown in the Title Window or in PPro CS4. I'm using a Zotac GTX 285.
    Anyone here has the same problem?
    Thanks.

  • Images Shown In Wrong Colors

    Hello,
    I have a problem in Lightroom.
    I just Lightroom 3 a try, only it turns out the colors of the images aren't displayed correctly.
    It gives this darker and sort off green-heavy version of the originals.
    It's kind of funny cause they look like film-photos developed badly or something.
    Anyway, some time ago I tried an earlier version of Lightroom and I think at first the colors were fine,
    later it turned into what I just described because I believe I touched something.
    So does anyone know how I can get the colors to be displayed correctly?
    Please note, I did a fresh install of Lightroom and removed anything Lightroom-related before.
    And all colors  outside Lightroom or even the look of the panels of Lightroom and such are correct.
    So all image-viewers, all videos, all other media... they all look right.
    Even in Photoshop, where I had a similar issue too but it was some colorspace-setting or something.
    But apparently Lightroom doesn't have that?
    Oh, AND I found that when I'm at the import-interface, the thumbnails of the images are shown correctly.
    Then when I select the ones I want and actually import them to use they're not the same anymore.
    If anyone has a clue, or the solution of course, that would be great.
    Cause this is really unfortunate, I was looking forward to using this,
    especially now I have a camera that supports RAW, I wanted to develop them in Lightroom.
    (Oh yeah, the images I tried were simply JPEG-photos by the way.)
    Greetings...

    OK, I understand it quite a bit better now, thanks for all your posts.
    But I did have an issue with Photoshop (CS3 as in the screenshot) a couple of months ago.
    I'm not sure what it looked like, but it was also this issue with wrong colors.
    Then I messed around with those "Proof"-settings and set it to the "monitor"-one.
    I guess that's the same as using no color-profiles? As they (Ps & Lr) look identical now I mean...
    I'm not sure what it was set to before by the way, I think it was set to a certain profile too.
    Then I kinda steered away from choosing a profile and selected that "monitor"-option I guess.
    Sorry, can't remember exactly, but you probably know what I mean.
    At least I can go ahead a bit with Lightroom now.
    As long as I keep the original shots I guess there can't go much wrong.
    Also, if I print something, would it be a good idea to match the look of the monitor closer to the print?
    At least, if it's off way too much. Or should I check if a specific printer uses no or a correct profile too somewhere?
    I do have a nice standalone which is set to sRGB too I believe.
    It is funny that I get the prints almost exactly to what they look like on the monitor or camera.
    Anyway, I háve been playing around with something called RivaTuner,
    which can tweak and load color-profiles on startup, I guess it's similar to what calibration-software would be like?
    But I think I turned the loading of those settings off a while ago too though.
    Cause it was always "a tad too red, a tad too blue, a tad too green" or whatever for my eyes,
    so I thought I'd stop messing with it and leave it neutral which would probably be better anyway...

  • How do I change an image border color to another color - Dreamweaver CS5?

    Good day,
    I have just learned how to add a border to an image with Dreamweaver CS5 within the Properties Inspector.
    After typing the width in pixels in the Border Text Field and pressing the Enter key, Dreamweaver created a black border.
    How do I change the image border color to another color?

    I added your suggested rule to the Style Sheet "in any order" as you explained. See the image below.
    However this did not change the image border from black to light blue. In fact, nothing changed.
    Nothing changed because the CSS that has been written into DW is incorrectly written.
    You want the following (exactly as written below)
    img {border: 4px solid #0062C8;}
    You've inadvertently wrapped the rule inside a #main_image container rendering it meaningless.
    It's easiest to go into Code View and change
    #main_image {
         img {border: 4px solid #0062C8;
    to
    img { border: 4px solid #0062C8; }
    The Property Inspector added a border exactly as I wanted it, other than the color I wanted the border to be. What is the use of this function in Property Inspector if it can add a border within Property Inspector but not let me change the COLOR of the black border that Property Inspector added, to another color?
    That's a deceptively simple, yet valid, question with a long answer.
    Back in the dark old days of web design web designers were restricted to inline HTML formatting which offered  border properties but no colors.
    CSS styling offers colors and more but has to be written differently.
    These days. it's best to avoid HTML formatting. Unfortunately border="4px" in the PI still allows it. But does not permit color.
    Does anyone else out there ever add color borders to their IMAGES (not the containing box for the image) ?
    Yes, using CSS.

  • Photoshop CS 6 - image -canvas - make double matt - select color - if I select wrong color, how do I change to a new color, right now it won't change to the new color I select, WHY?????

    Photoshop CS 6 - image -canvas - make double matte - select color - if I select wrong color, how do I change to a new color, right now it won't change to the new color I select, WHY?????

    Hi, The options bar shows sample size 101 by 101 Average. That was my problem. When I was troubleshooting in order to try to explain to you what was happening, I noticed that when I sampled my models teeth, it gave me a color a bit lighter than her lipstick as my foreground color in my tool box. That started me thinking in the correct way. I didn't realize that my sample size had somehow gotten switched from point sample to 101 by 101 average. I appreciate the help. Thank you.

  • Display image color profile

    Can LR display the ICC color profile name of an image ?
    Had to turn to Photoshop
    to retreive that info I had forgotten to add in the file name ( "Picture_zzz_xxxPrinter_yyyPaper_profile_nnnDPI_WxH.tif" )
    pretty basic, isn't it ?
    Moreover long filenames are truncated and show only in metadata File Name block in right panel.
    But that's another story !

    Dear DLScreative,
    please let us not fight over words - fact is, that with at least 2 totally different users and 4 different Mac computers Aperture 3.x behaves totally different (i.e. cannot display these images) than Aperture 2.x. The special color profile is embedded because 15.000 images were scanned with a Nikon LS5000
    scanner. I don't know how to upload this color profile (which has been tested to be correct) to this
    forum. Would you care if I sent you an E-Mail with the special profile attached so you could yourself
    try and see?
    Regards,

  • CS5 Samples Wrong Color

    I'm having issues with the eyedropper tool in Photoshop. I've found that after I add an adjustment layer, using the eyedropper tool on any given layer in the document will give me the wrong color. A color is sampled, but seems to be shifted in Hue/Saturation/Brightness from the original color on the layer. I've made sure that the tool is set to 'Point Sample' and 'Current Layer', but the issue persists until I restart Photoshop.
    I posted this question around two months ago, and have since followed advice and reformatted my Computer, upgraded the graphics driver, upgraded to Windows 7 from Vista, and installed the 12.0.1 Photoshop update. The error is exactly the same as before, leading me to believe that I can't be the only one experiencing this.
    Can anyone duplicate the issue on their setup? Any ideas on how to address it?
    Thanks very much.

    Have you tried turning off OpenGL? Sampling the wrong color only after a while would suggest it does this because it is not flushing a buffer or the card generally has a misconfiguration that prevents it from handling transparencies, so, if you will, after a while some "invisible pixel" obstructs the correct sampling region.
    Mylenium

  • Is Aperture displaying images with a modified color temp. or gamma?

    I am brand new to Aperture and after importing some scans from black and white negatives, I notice that the same images when viewed in Preview or Photoshop appear brighter and perhaps cooler (but it is hard to tell with black and white images).
    I am just trying to discover why Aperture displays images a little differently than other applications.
    Thanks in advance.
    D

    the same images when viewed in Preview or Photoshop
    Comparison across applications is meaningful if and only if the image has the selfsame source ICC colour space profile. Begin by checking that the image has an embedded source ICC colour space profile. There are lots of ways, either run one the ColorSync AppleScript that extracts the embedded profile, or open the image in Apple Preview and check Tools > Get Info > Summary: ColorSync Profile, or open the image in the Apple ColorSync Utility, or open the image in Adobe Photoshop (which will describe an image without an embedded source ICC colour space profile as 'Untagged RGB', 'Untagged Gray' or 'Untagged CMYK'). If instead you open an image without an embedded source ICC colour space profile in a series of side-by-side application windows, these applications will assign an assumed source ICC colour space profile and the sources they assign may not be the same. In order to configure a conversion you have to have a source and a destination: no source, no colour managed conversion, so a source has sometimes to be assigned.
    Hope this helps,
    Henrik

  • Photoshop CS5 still chooses wrong monitor profile in dual monitor case?

    The folk lore has it that if you go to EDIT/COLOR SETTINGS and open the Working Spaces RGB drop down, then what it says near the top on the "Monitor RGB" line is the monitor profile that photoshop is actually using.
    If that is true, then I would expect that if I run photoshop on my monitor 1 it would show the profile of monitor 1, and if I run PS on monitor 2 it would show the profile of monitor 2. But in fact, it always shows the profile of monitor 1. Naturally, this creates anxiety that PS is using the wrong profile to display my images, since I normally run with the image on monitor 2.
    My setup: Windows 7 64-bit, PS 12.0.1 x64. Matrox M9120 graphics card driving two monitors. Windows CONTROL PANEL/COLOR MANAGEMENT shows a different profile active on each monitor.
    (By running photoshop on a particular monitor, I mean I run photoshop, drag it in non-full screen mode to the desired monitor, and close it. Then I run it again and it starts on that monitor (including the splash screen).)

    PeterFacey wrote:
    Emil, Sorry, I disagree. It relates entirely to how Photoshop handles profiles, not how the operating system does.
    Windows operating system doesn't handle color profiles at all, but it provides all programs that do with the same way to handle them. If you have the color profiles of your monitors installed properly in the system, they will be equally available to all programs. If a program can use properly one color profile for one monitor it will do the same with more.
    PeterFacey wrote:
    I also have CorelDraw which is a colour managed application. If I set that straddling two monitors, do you think it will use the appropriate monitor profile for each half? I don't know, ...
    I don't have CorelDraw and don't know if it is color managed, but if it is and if the color management on your system is working properly it should give you the same result as Photoshop. Just go ahead and check it - open the same image in Photoshop and in CorelDraw and make a screen capture then measure the RGB values in Photoshop or any program that displays the RGB numbers of colors. But have in mind that a screen capture from multiple monitors that share the desktop will capture the entire shared desktop on one image (if monitors are different sizes it will leave blank areas around the smaller one depending on the alignment), but the same colors will be the same on the entire screen capture using the effect from the color profile only of your main monitor. So if you want to measure how the other monitor displays the RGB color values of the same color, you have to change it  to your main monitor in your system in order to have the screen capture with the effect of that monitor's color profile.
    On my computer using Windows 7, all color managed programs show the same colors on one or more monitors. Along with the color managed programs from Adobe like Photoshop, Illustrator, InDesign, and AfterEffects, the other color managed programs like Windows Explorer, Windows Media Player, Firefox, QuickTime, etc also show the same RGB values of a color from each program on a certain monitor.
    Basically, if the color management is working properly, the same color displayed from all color managed programs should look the same or as close as possible on each monitor, but when you capture the screen and measure the RGB values they should be different on each monitor unless the monitors are physically identical which is unreal.

  • Flash Player (Web Export) showing wrong colors

    Cheers!
    Sometimes when I look at my exported galeries I'm not satisfied regarding the colors. Up to today I thought that this is based on my week skills in developing photos.
    But that seems to be wrong! Please helpt me with the following:
    I'm exporting via Web Module using a simple viewer template (which uses the adobe flash player to display images). Now I fire up that little web page in my browser (safari or firefox in my case) and compare what I see with what I see in lightroom (library module). I can notice a very severe difference in the color presentation. Next I start a second browser window and place it beside the one showing the flash player galery exported before. Within that browser window I call the image from the image folder within the exported web page and compare both. Hence! It does not look like the same.
    To illustrate that I shot the following a couple of minutes ago:
    http://minolta.karlos.at/test.png
    On the left you see the lightroom web galery (simple viewer) and on the right the jpeg picture itself. (You can try that by starting the web galery and then click on the photo and launch it with the command "open picture in new window"
    Weird!
    Is that behaviour known and is there any solution to avoid this wrong color display?
    Thanks!
    C.

    Flash is not color managed (although in the latest version you can somehow turn it on I understand) so it will never show the right color ever. That said, if you have a good display but not so good it has a wide gamut, and you calibrate correctly at gamma 2.2, you should see very similar color. The problem on Macs that have not been calibrated is that the default gamma is wrong (even Apple says this) and they have to be calibrated to be right. Normally Safari color manages so the gamma of most images gets automaticaly corrected, but it cannot color manage flash.
    That said, from your screenshot it appears the difference is entirely due to the difference in gamut between your display and sRGB. There is nothing you can do about it but pester Adobe to enable color management for the latest flash versions in the Lightroom flash galleries. Of course nobody that looks at your gallery will actually see the right color anyway as basically nobody calibrates their screen and most people do not even use color managed browsers.

  • ImageIO: scaling and then saving to JPEG yields wrong colors

    Hi,
    when saving a scaled image to JPEG the colors are wrong (not just inverted) when viewing the file in an external viewer (e.g. Windows Image Viewer or The GIMP). Here's the example code:
    public class Main {
         public static void main(String[] args) {
              if (args.length < 2) {
                   System.out.println("Usage: app [input] [output]");
                   return;
              try {
                   BufferedImage image = ImageIO.read (new File(args[0]));
                   AffineTransform xform = new AffineTransform();
                   xform.scale(0.5, 0.5);
                   AffineTransformOp op = new AffineTransformOp (xform, AffineTransformOp.TYPE_BILINEAR);
                   BufferedImage out = op.filter(image,null);
                   ImageIO.write(out, "jpg", new File(args[1]));
    /* The following ImageViewer is a JComponent displaying
    the buffered image - commented out for simplicity */
                   ImageViewer imageViewer = new ImageViewer();
                   imageViewer.setImage (ImageIO.read (new File(args[1])));
                   imageViewer.setVisible (true);
              catch (Exception ex) {
                   ex.printStackTrace();
    Observations:
    * viewing this JPEG in an external viewer displays the colors wrong, blue becomes reddish, skin color becomes brown, blue becomes greenish etc.
    * when I skip the transformation and simply write the input 'image' instead the colors look perfect in an external viewer!
    BufferedImage image = ImageIO.read (new File(args[0]));
    ImageIO.write (image, "jpg", new File(args[1]));
    * when I do the scale transformation but store as PNG instead the image looks perfect in external viewers!
    BufferedImage out = op.filter(image,null);
    ImageIO.write(out, "png", new File(args[1]));
    * viewing the scaled JPEG image with The GIMP produces "more intense" (but still wrong) colors than when viewing with the Windows Image Viewer - I suspect that the JPEG doesn't produce plain RGB values when decompressed (another color space used then sRGB? double instead of int values?)
    * Loading the saved image and display it in a JComponent shows the image fine:
    class ViewComponent extends JComponent
         private Image image;
         protected void paintComponent( Graphics g )
              if ( image != null )
    // image looks okay!
                   g.drawImage( image, 0, 0, this );
         public void setImage( BufferedImage newImage )
              image = newImage;
              if ( image != null )
                   repaint();
    * Note that I've tried several input image formats (PNG, JPEG) and made sure that they were stored as RGB (not CMYK or the like).
    * Someone else already mentioned that the RGB values as read from an JPG image are wrong, but no answer in this thread - might be connected with this problem: http://forum.java.sun.com/thread.jspa?forumID=20&threadID=612542
    * I tried the jdk1.5.0_01 and jdk1.5.0_04 on Windows XP.
    Any suggestions? Is this a bug in the ImageIO jpeg plugin? What am I doing wrong? Better try something like JAI or JIMI? I'd rather not...
    Thanks a lot! Oliver
    p.s. also posted to comp.lang.java.programmers today...

    Try using TYPE_NEAREST_NEIGHBOR
    rather than
    TYPE_BILINEARI was a bit quick with saying that this doesn't work - I had extended my example code which made it fail (see later), but here's a working version first (note: I use the identity transform only for simplicity and to show that it really doesn't matter whether I scale, rotate or shear)):
    // works, but only for TYPE_NEAREST_NEIGHBOR interpolation
    Image image = ImageIO.read (new File(args[0]));
    AffineTransform xform = new AffineTransform();
    AffineTransformOp op = new AffineTransformOp (xform, AffineTransformOp.TYPE_NEAREST_NEIGHBOR);
    BufferedImage out = op.filter(image, null);
    ImageIO.write(out, "jpg", new File(args[1]));The problem: we restrict ourselves to nearest neighbor interpolation, which is especially visible when scaling up (or rotate, shear).
    Now when I change the following, it doesn't work anymore, the stored image has type=0 instead of 5 then (which obviously doens't work with external viewers):
    // doesn't work, since an extra alpha value is introduced, even
    // for TYPE_NEAREST_NEIGHBOR
    BufferedImage out = op.filter(image, op.createCompatibleDestImage(image, ColorModel.getRGBdefault()));Intuitively I would say that's exactly what I want, and RGB image with data type int (according to JavaDocs). That it has an alpha channel is a plus - or is it?
    I think this extra alpha value is the root of all evil: JPEG doesn't support alpha, but I guess ImageIO still mixes this alpha value somehow into the JPEG data stream - for ImageIO that's not a problem, the JPEG data is decompressed correctly (even though the alpha values have become meaningless then, haven't checked that), but other JPEG viewers can't manage this ARGB format.
    This also explains why writing to PNG worked, since PNG supports alpha channels.
    And obviously an AffineTransformOp silently changes the image format from RGB to ARGB, but only for TYPE_BILINEAR and TYPE_CUBIC, not for TYPE_NEAREST_NEIGHBOR! Even though I can imagine why this is done like this (it's more efficient to calculate with 32 bit ints than with 24 bit packed values, hence the extra alpha byte...) I would at least expect the JPEG writer to ignore this extra alpha value - at least with the default settings and unless otherwise told with extra parameters! Now my code gets unnecessary complicated.
    So how do I scale an image using bilinear (or even bicubic) interpolation, so that it get's displayed properly with external viewers? I found the following code working:
    // works, but I need an extra buffer and draw operation - UGLY
    // and UNNECESSARILY COMPLICATED (in my view)
    BufferedImage image = ImageIO.read (new File(args[0]));
    AffineTransform xform = new AffineTransform();
    AffineTransformOp op = new AffineTransformOp (xform, AffineTransformOp.TYPE_BILINEAR);
    BufferedImage out = op.filter(image, null);
    // create yet another buffer with the proper RGB pixel structure
    // (no alpha), draw transformed image 'out' into this buffer 'out2'          
    BufferedImage out2 = new BufferedImage (out.getWidth(), out.getHeight(),
                                                             BufferedImage.TYPE_INT_RGB);
    Graphics2D g = out2.createGraphics();
    g.drawRenderedImage(out, null);
    ImageIO.write(out2, "jpg", args[1]);This is already way more complicated than the initial code - left alone that I need to create an extra image buffer, just to get rid of the alpha channel and do an extra drawing.
    I've also tried to supply a BufferedImage as 2nd argument to the filter op to avoid the above:
    ICC_ColorSpace (iccColorSpace = new ICC_ColorSpace (ICC_Profile.getInstance(ColorSpace.CS_sRGB)
    BufferedImage out = op.filter(image, op.createCompatibleDestImage(image, new DirectColorModel (iccColorSpace), 24, 0xff0000, 0x00ff00, 0x0000ff, 0x000000, false, DataBuffer.TYPE_INT)));  But then the filter operation failed ("Unable to transform src image") and I was beaten by the sheer possibilities of color spaces, ICC profiles, so I quickly gave up... and hey, I "just" want to load, scale and save to JPG!
    The last option was getting a JPEG writer and its ImageWriteParam, trying to set the output image type:
    iwparam.setDestinationType(ImageTypeSpecifier.createFromBufferedImageType(BufferedImage.TYPE_INT_RGB));But again I failed, the resulting image type was still type=0 (and not 5). So I gave up, realising that the Java API is still overly complex and "too design-patterned" for simple tasks :(
    If anyone has still a good idea how to get rid of the alpha channel when writing to JPEG in a simple way (apart from creating an extra buffer as above, which works for me now...)... you're very welcome to enlighten me ;)
    Cheers, Oliver
    p.s. Jim, I will assign you the "DukeDollars", since your hint was somewhat correct :)

  • How to display images in a Jtable cell-Urgent

    Hay all,
    Can anybody tell me that can we display images to JTable' cell,If yes the how do we do that(with some code snippet)? Its very urgent .Plz reply as soon as possible.

    Here is an example
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.table.*;
    class SimpleTableExample extends JFrame
         private     JPanel  topPanel;
         private     JTable  table;
         private     JScrollPane scrollPane;
         public SimpleTableExample()
              setTitle( "Table With Image" );
              setSize( 300, 200 );
              setBackground( Color.gray );
              topPanel = new JPanel();
              topPanel.setLayout( new BorderLayout() );
              getContentPane().add( topPanel );
              // Create columns names
              String columnNames[] = { "Col1", "Col2", "Col3" };
              // Create some data
              Object data[][] =
                   { (ImageIcon) new ImageIcon("User.Gif"), (String) "100", (String)"101" },
                   { (String)"102", (String)"103", (String)"104" },
                   { (String)"105", (String)"106", (String)"107" },
                   { (String)"108", (String)"109", (String)"110" },
              // Create a new table instance
    DefaultTableModel model = new DefaultTableModel(data, columnNames);
              JTable table = new JTable( model )
                   public Class getColumnClass(int column)
                        return getValueAt(0, column).getClass();
              };          // Add the table to a scrolling pane
              scrollPane = new JScrollPane( table );
              topPanel.add( scrollPane, BorderLayout.CENTER );
         public static void main( String args[] )
              SimpleTableExample mainFrame     = new SimpleTableExample();
              mainFrame.setVisible( true );
    }

  • Size of a displayed image in memory

    Hello,
    I am interested in controlling the memory usage of an application. The application loads and displays images from files (mostly GIFs). I'd like to prevent an image from being displayed if it would occupy more memory than some preset limit. Is there a way of determining how much memory a displayed Image object would take before it is created and displayed?
    Thanks in advance,
    Misha

    True. But Gifs are for outdated weirdos ;o)
    It gets a bit complicated. Typically, screen memory will use 4-byte buffers. Non-'true'-color file formats often don't. You can store an image in various forms: typically either compatible with the file format or compatible with the screen. If you want to use an image for rendering then it should be in a screen-compatible form, otherwise rendering will be very slow. However, an image in a reduced bit depth does occupy less heap space. So if we're talking about "displayed images" then we should probably be reckoning on 32bpp images, for desktop use at least.
    One thing I'm not 100% sure about is whether Toolkit produces a file- or screen-compatible image by default. And I would assume that it would be perfectly possible to implement an ImageReader which always produced 32bpp images regardless of the file bpp.

  • Problem in displaying images stored in Blob variable

    Hi all,
    I have a requirement where i need to retrieve the image stored in Blob variable in DB and display the image in JSP page.
    I have written the below code to achieve this, it works fine
    In JSP, I am calling a action in the <img tag
    <img src='downloadPhoto.page?method=getPhotoInBytes&accessoryModelPictures.id.accessoryNumber=${photo.id.accessoryNumber}/> In my controller class
    InputStream inputStream=accessoryPicturesLOB.getPicture().getBinaryStream();
    byte[] theBytes = new byte[inputStream.available()];
    inputStream.read(theBytes);
    response.setContentType("image/jpg");
    response.getOutputStream().write(theBytes);But the problem is, *if i right click on the image and select save picture as option i get a error saying "The system cannot find the specified file "*
    Can you please tell me what is wrong in my approach/code
    Is there any better approach to display image that is store in Blob variable ?
    Please help on this.
    Thanks in advance.

    You need at least to set the filename in the content disposition header.

Maybe you are looking for

  • Remove iCloud with no password

    my son got an iphone from a friend. the icloud is unable to be deleted and then wont give us the password. How do we bypass this issue?

  • Can Mail access the sent messages on my POP3 server (webmail)?

    Hi there, I recently got a blackberry, mainly for the email etc. It's all great, but I have stumbled on an issue that I can't figure out: When I send an email from it, it somehow gets a copy of the sent email into the sent items on my webmail server.

  • Cancellation of confimations

    Hi PP Gurus, I have a problem while cancellation of conformations. I have created a Production order and confirmed the same by co11n, the same is cleared in quality also. I want to cancel the above confimation By using co13 i have cancelled the same.

  • Query on BDT: Business Data toolset

    Hi, I wanted to know, how to determine that a particular transaction is BDT(business data toolset) enabled? Or Let me know the list of transactions for which i can enhance/modify using the concept of BDT. Regards Shiva

  • Forwarding mail question

    Hello.. I have two e mail addresses at me.com i want to phase out one of  the e mail addresses. For the time being, can  I "instruct" mail coming into one of the mailboxes to automatically forward all incoming mail to the other e mail account..by usi