Color, and Tiff, wrong color

I just import a tiff image sequence into Color. But the color of the image is apparently shift. Skin tone is purple.
I use Quicktime Player to open this image sequence, and save a mov file. Then import this mov into Color project, the color is right.
I don't know why ?
Thx a lot

Probably the bit ordering and a combination of bad YCbCr/RGB conversion. If it translates properly through Quicktime, then that flavour of TIFF would appear to be incompatible with COLOR. All Tiff are not created equal.
jPo

Similar Messages

  • Highlight colors change (invert) on some backgrounds, i can make it back by changing use system colors and or background color, i would like to knoe if there is a setting to stop the change ?

    i set my highlight colors to yellow background and black foreground in windows , it uses the same colors in firefox except as i highlight over some colors the foreground and background colors invert yellow on black , if there is a setting (or one can be added) in about:config to make the highlight always stay as yellow back and black foreground ? , im not sure if it is done within firefox though or if it is win xp but itcan be changed inside firefox about:config with browser.display.use_system_colors and/or browser.display.background_color .

    that sort of makes sense but when you look at youtube messages , each alternate line is a very pale blue and when highlighted each alternate line the color is switched , this also happens on all web pages with simuler shading (not just pale blue) .
    about the purple highlighting , ive never seen that , i have firefox on 2 PCs , a laptop and a notepad and they all use the colors set in win xp for highlight , even when use system colors is set to false , all that happens then is they swap about (invert) agen , i some times have to switch browser background color as well . sorry for being repetetive , im just trying to be clear , i have tried fine tuning BG color but on some pages just 1 single number away from white makes the switch,on other pages you can go nearly all the way to black befor it switches .ive just seen add images , ill send some pics to show what im trying to say .

  • How To Change Hyperlinks And Nav Menu Colors

    I continue to see people stating that it's impossible to change hyperlink colors and navigation menu colors until after you publish your site. This is not true. It's quite easy to update your templates with the colors YOU want and when you update the template, you never have to mess with any post-processing. You make a new page? Your colors are already there.
    I've gone over this before in this thread:
    http://discussions.apple.com/thread.jspa?messageID=3288533&#3288533
    But I'll go over the quick and dirty version here as well. Those who want more detail can post a question and I'll elaborate.
    First, do you know how to get into iWeb's inner folders? You right click or control click on your iWeb icon and select Show Package Contents from the pop-up menu.
    Step 2
    Once you've done that, you'll see a new Finder window that shows a folder called Contents. Open that and then open the next folder Resources. Within Resources there's a folder named Shared. Open the Shared folder.
    You're now looking at your collection of iWeb template files. You'll notice that each template has seven individual page files - each file defines the layout and styles for the page for which its named. This is actually one of the two places where you'll find the data/images that make up your iWeb pages. This location only contains the images. Now I'll show you were to find the data file.
    So you're currently here:
    /Applications/iWeb/Contents/Resources/Shared/
    You want to go here:
    /Applications/iWeb/Contents/Resources/English.lproj
    Now if you speak another language and your Mac's system language is set to the language you speak, substitue English with that language. If your system is set to English regardless of the language you speak, and you use the English templates, then stick with the English folder.
    When you're in the English.lproj folder, you will see seven sub-folders and one file named TemplatesInfo.plist. TemplatesInfo.plist is the file that registers the templates and tells iWeb what you've got in your collection. But we don't care about that file for now. We're after the template data files.
    The seven sub-folders are aptly named for each of the seven page-types as you can see. Open the About Me folder.
    Now you will see an "about me.webtemplate" file for every template you have in your collection. Good job. You've learned something new. Move on to Step 3.
    Step 3
    If you haven't decided yet, now's the time to decide which template you'd like to update. If you're just along for the ride to learn something new, no worries. We won't do anything you can't undo.
    Pick a template file now. Perhaps you chose the White template, or:
    White About Me.webtemplate
    Right click or control click on this file and select Show Package Contents from the pop-up menu. This will launch a new Finder window that displays the contents of the White About Me.webtemplate file.
    You will likely see a handful of different files, but the file you want is the one named Index.xml.gz.
    Index.xml.gz is the brain behind the template. Within this file are all the settings for the page you chose and it's really not hard to find what you want and change it. So let's take a peek.
    Step 4
    Double-click the file Index.xml.gz. This will reveal a new file named Index.xml. You might have to scroll down in your Finder window to see it. Rename Index.xml.gz to Index.xml.gz.backup in case you screw things up, you have your original.
    Now, open Index.xml with TextEdit. Do not open the file with a code editor unless you have already formatted the file.
    When the file opens, you'll notice it's one gigantic jumbled mess of stuff. No worries, we'll straighten that out. All you need to do is a find/replace.
    Find all instances of: ><
    And replace with:
    <
    The line break is important so maybe just copy the lines right out of this post. When you replace all of those, the file will be far more easy to view.
    Assuming you've completed that step. You're basically ready to make your change and test it out! Not hard ey?
    So let's say you want to change your hyperlink color from grey to blue. Search for this string:
    BLDefaultHyperlinkCharacterStyleIdentifier0
    When you find that string, you will see a few lines below it, two lines that look similar to this:
    <sf:fontColor>
    <sf:color xsi:type="sfa:calibrated-rgb-color-type" sfa:r=".8" sfa:g="1" sfa:b="0.4" sfa:a="1"/>
    This is how the template specifies color. It's RGB100. Your Mac came with a program called Art Director's Took Kit and that application can tell you the RGB100 values for any color you want. Tinker with that and you'll have a lot of fun with this.
    So I picked out a nice royal blue for you. The RGB100 values for it are:
    R:0 G:25 B:100
    What you need to do is update the color line to match those values:
    <sf:color xsi:type="sfa:calibrated-rgb-color-type" sfa:r="0" sfa:g=".25" sfa:b="1" sfa:a="1"/>
    Notice that you specify these in terms of a percentage, where 25 became .25 and 100 became 1.
    Step 5
    Save your file. It's time to see your work in action. Open iWeb if it isn't open already and create a new page using the template you've just altered. If you altered the White About Me page, then select that and create the new page.
    It there are hyperlinks already on this page, you should already see that they reflect your new color. If there aren't any hyperlinks, then type some text and create one. You should see your new link color right away!
    Now if you don't see the new color, either you picked the wrong page or you neglected to rename the Index.xml.gz file a few steps back. If you did not rename that file, then it's still in control of your template. Rename it now and try again.
    If you don't like that color, simply swap back to the TextEdit page and change it until you like it - switching back and forth between the file and iWeb to view your changes. Once you're happy, make note of the color you chose and make the change for the remaining six pages in the tempalte you selected. Just be sure to follow the steps for each page you edit. If you fail to see your change, again, check to see that you renamed Index.xml.gz.
    Side Notes
    For the more technical, rather than editing an existing template, you might want to duplicate and rename a template. This essentially creates a brand new one. If you're pretty good within Finder then go for it, just be sure that you duplicate the files in both locations:
    /Applications/iWeb/Contents/Resources/Shared/
    /Applications/iWeb/Contents/Resources/English.lproj/...
    Choose a unique name for the duplicated template and change every single file so that the new name replaces the old one. You would have to register this new template in the TemplatesInfo.plist file as well, but I'm not going to get into that here.
    The thread I referenced at the top has all kinds of search terms to find the other hyperlink styles (rollover and visited) and all the navigation menu styles plus a bunch of other fun stuff.
    Now, it seems long, but that's because I wrote it well. The shortest version of this I've ever written was two sentences, but that was for a UNIX geek and he got it. It's just as easy for you, but I write it out so that anyone can do this, because anyone can. It's just not hard.
    If you have questions about any of the steps, go ahead and ask.

    Good. Okay here's how to apply a background color to your nav bar buttons. For example, my Aerolite template sets the selected page to a black background color. The rollover effect uses a gradient fill. I'll describe both of those here.
    First, here are the navigation menu search terms:
    navbaritem-style-normal-default
    navbaritem-style-rollover-default
    navbaritem-style-selected-default
    navbar-pargraph
    The first three set the button effects and text colors. The last one there sets the font, font size and other paragraph styles.
    To change the selected page button background color, or gradient or image, first search for it using the search term above. Start from the top of the file because there are two instances of those terms, one where you can set the values, the other is only reference to the first and does not allow you to change settings.
    When you find the search term, you might want to insert an empty line above it to help separate it from the rest of the code. You can also insert an empty line below the section. The end of this style ends with:
    </sf:navbar-item-style>
    Be careful not to mix that up with </sf:navbaritem-character-style>
    Now, within this section, you'll find all kinds of settings... stroke, fill, character styles, etc. Notice you can change font color in there. But for this demo, you want to find the section that looks like this:
    <sf:fill>
    <sf:null/>
    </sf:fill>
    I'm assuming you're editing an Apple template that does not already have a fill effect. If it does have one, then your example might not look exactly like that.
    To apply a color fill, change those three lines to these lines:
    <sf:fill>
    <sf:color xsi:type="sfa:calibrated-rgb-color-type" sfa:r="0" sfa:g="0" sfa:b="0" sfa:a="1"/>
    </sf:fill>
    You can see that we've inserted the line that specifies color - something you should be familiar with by now. Here you can specify the color that will become the background of your nav bar button. This example specifies black. Easy no?
    If you would prefer a gradient fill, then replace those three lines with this:
    <sf:fill>
    <sf:angle-gradient sfa:ID="SFRAngleGradient-1111" sf:opacity="1" sf:type="linear" sf:angle="0">
    <sf:stops sfa:ID="NSMutableArray-1111">
    <sf:gradient-stop sfa:ID="SFRGradientStop-1111" sf:fraction="0">
    <sf:color xsi:type="sfa:calibrated-rgb-color-type" sfa:r="0.40" sfa:g="0.40" sfa:b="0.30" sfa:a="1"/>
    </sf:gradient-stop>
    <sf:gradient-stop sfa:ID="SFRGradientStop-2222" sf:fraction="1">
    <sf:color xsi:type="sfa:calibrated-rgb-color-type" sfa:r="0.64" sfa:g="0.66" sfa:b="0.54" sfa:a="1"/>
    </sf:gradient-stop>
    </sf:stops>
    </sf:angle-gradient>
    </sf:fill>
    Now, don't panic Here's what this is. The first line allows you to specify the angle of your gradient. Play with the numbers from 0 to 359 until you have what makes sense for your design.
    Then, you will see two familiar lines again - the lines that allow you to specify color! The first line is the first color of your gradient and the second color is the second color of your gradient. That's all there is to it!
    SECRET: It might be possible to add additional colors, not just two. Do you see the part sf:fraction="0" and sf:fraction="1"? These are gradient stops. I'm willing to bet that if you inserted a thrid gradient stop with a fraction setting of .5, you'd have a three-color gradient!
    <sf:gradient-stop sfa:ID="SFRGradientStop-3333" sf:fraction=".5">
    <sf:color xsi:type="sfa:calibrated-rgb-color-type" sfa:r="0" sfa:g="0.25" sfa:b="4" sfa:a="1"/>
    </sf:gradient-stop>
    I have never tried this - it just occurred to me as I was looking at this code. Big prize for the first person to prove the theory
    NOTE: You will notice that the number 1111 and 2222 are within this code. iWeb XML relies on identification tags here and there. It's nothing you really have to care about except if you insert gradient fills in more than one area. Those numbers need to be unique so if you paste that code in for your selected page button and then paste it again for your rollover buttons, you'll need to update the numbers for the second button. Any numbers are fine. Use 3333 and 4444 for the second set, 5555 and 6666 for the thrid and so on. I often just type 4345781476 - doesn't matter.
    Next lesson will be images.

  • Fast Color and 3 Way CC weirdness

    Windows 7. CC 2014
    Fast Color and 3 Way Color Effects are not responsive  to mouse input. eg Dragging the parameters
    I have to drag..let go and to see the effect take hold.
    Its a weird way to work in CC and grade.
    Is it the same for everyone?

    I now seem to have this working as I would expect and I have no idea what caused the change.
    I opened CC and it was working there...then I opened CC2014 and lo and behold ...working there too!
    Definitely not working in C2014 yesterday because I was seriously running them through their paces as part of extensive camera testing we are doing here.  (Creating Camera Profiles - profile through to post workflow).
    I am very pleased its working because I have always liked Three Way Corrector and its going to feature in this new Profile workflow in conjunction with "Master Clips"
    Master Clips (PPRO function) ... I have been testing this and I really like how it is going to work for me.
    Basically - we have a new camera and we will be shooting with camera profiles ("looks") that will require a degree of  "pre edit " CC and Grade.   Adding a Preset (ex Three Way CC)  to Clips in the Bin (Master Clips) ...will make this a fast efficient workflow.

  • JPG and TIFF colors in Bridge CS5 way off, but fine in Photoshop

    Just started happening, but not sure if it was after updating to Bridge 4.0.3 or Camera RAW 6.2.  The colors for RAW and PSD files are fine in Bridge, but all JPGs and TIFFs colors are blown out and way off.  Opening the JPG or TIFF in Photoshop looks fine though.  Anyone else having this issue, or know how to fix it?
    Update:  If I set the "Develop Settings" in Bridge CS5 to "Camera Raw Defaults" for the JPGs/TIFFs that are displaying improperly, the colors and tones go back to normal, but if I "Clear Settings" everything turns to crap again.

    PLEASE  help save my sanity and my reputation!  --I have spent the last five days exhausting every possible solution to this debilitating issue. I have spent countless hours perusing the web for a solution, spent 4 hours yesterday with Adobe customer support and yet, there is no solution to be found. My issue is that the color (in every file format NEF, JPEG, PSD) completely changes color and desaturates in every one of the adobe products: Photoshop CS5, Camera RAW 6.2, Lightroom 3.2. -
    Everything was working fine, and then out of no where my productivity has come to a crashing halt. This is the steps I have taken to this point:
    -Uninstalling/re-installing all of the software
    -Purging anything that can be purged.
    -Changing color profiles
    -Resetting defaults
    -Resetting preferences
    -Installing updated drivers for monitor, video cards
    -rollling back drivers for monitor, video cards
    -monitor recalibration
    **and finally, today...I set the monitor up on another computer, OS windows xp, and to my complete surprise, the issue persists even on another pc with completely different hardware.
    -I am at my wits end with this. I have clients ringing my phone off the hook. This is crazy!
    -I have sent out for another monitor as a last ditch effort to see if something is wrong with the monitor.
    PLEASE, if anyone has a solution please let me know. Apparently, the folks at Adobe are just as perplexed by these issues as we are, as I have found numerous posts on forums throughout the Internet with this same issue---and yet none of the post every found a solution.
    Primary System
    Windows7 64-bit
    Nvidia fx 580 video card
    Dell U2410 Ultra Sharp Monitor
    Abobe CS5 Photoshop -64-bit
    Lightroom 3.2
    Camera Raw 6.2
    Secondary
    Windows XP
    Nvidia GeForce 8400gs
    Same software, just in a 32-bit

  • Ibook g4 my screen is funny colored and some flashing sometimes goes back to normal anybody know whats wrong with it I just got it 2 weeks ago?

    I have a problem with a apple ibook g4 I bought 2 weeks ago 
    from ebay. It had tiger and I installed leopard on it and it had been 
    working perfectly for about a 2 weeks. There was nothing wrong using 
    tiger except it did not remember my settings. I would have set up my 
    email or itunes everytime the computer started. I wanted the updated 
    leopard so I installed that and it fixed the memory problems. After 
    that it worked great with no problems at all for a week, until now. Here is my problem when I start my 
    ibook it starts up with a blue screen instead of the grey screen. This all started when I closed the top and 
    put it in sleep mode when I opened it back up when it came out of 
    sleep mode the screen looked funny colored and a little 
    fuzzy. I have shut the top down and opened it hours later and it never did this before. Sometimes it will flash in and out of the funny colors to normal 
    look and other times it will stay that weird fuzzy off looking color. And it will start and sometimes flash between funny 
    looking to normal and then switch to normal color. I had no problems 
    with it doing this until 2 days ago. I am sending you 
    this email using my ibook g4 and it looks normal right now for a few seconds then it flashs a little and goes back to that weird screen. This 
    morning when I first started it up it went weird colored a little then 
    back to normal and stayed normal for about 1 minute. Yesterday when I was using it I saw 
    a quick blue colored flash once in a while as it looked normal other then the flash then went to the strange colors. It has never done this 
    before either until 2 days ago. My battery does not set 
    flush in the case but I don't think that would be a problem. My Ibook 
    is the 14" version with 1.42 Ghz  PPC 7450 chip and 1 Gb memory. This 
    is my 1st apple and not as familiar with it as windows. What do you 
    think is wrong with it? It worked so good up until now. I would hate 
    to just junk it I just bought it. I have heard it coulod be the logic board. Does anybody have a clue what is wrong? Any help would be VERY much appreciated. Thank You, Jim

    It does sound like the logic board. It's not uncommon for an iBook with a faulty logic board to work intermittently. You can't count on it, though. It could fail completely at any time.
    DT&T Computer Services in Fremont, California has the best deal I've found on logic board replacements. They do free diagnostics, so they would make sure that's what you need, and there is a six-month warranty on the repair.
    http://www.dttservice.com/ibookg4.html
    I'm always a little sad that people are basing their opinions of Macs on these older iBooks. Yours is the newest iBook in existence, but it's still over five years old — ancient in computer terms.

  • When I change my TIFFs to jpegs, the color and tone are changing as well [was: Need help please!]

    When I change my TIFFs to jpegs, the color and tone are changing as well, any ideas as to what the problem could be?

    You are screwing up the colors by not using color management or at least not keeping an eye what color space/ profiel your source files use anbd what happens when Safe for Web converts them. As a start, perhaps refer to this, then work your way through the Internet wide and far to learn about color management:
    Common Photoshop Issues
    Mylenium

  • 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 :)

  • Problem with ImageIO.read and ImageReader JPG colors are distorted/wrong

    (Using JDK 1.5)
    ImageIO incorrectly reads some jpg images.
    I have a jpg image that, when read by the ImageIO api, all the colors become reddish.
            try
                java.awt.image.BufferedImage bi = javax.imageio.ImageIO.read( new java.io.File("javabug.jpg") );
                javax.imageio.ImageIO.write( bi, "jpg", new java.io.File("badcolors.jpg") );
                javax.imageio.ImageIO.write( bi, "png", new java.io.File("badcolors.png") );
            catch ( java.io.IOException ioe )
                ioe.printStackTrace();
            }Why is this happening??? My guess is there is a problem with the ImageIO.read ?
    the jpg can be downloaded at http://www.alwaysvip.com/javabug.jpg
    <BufferedImage@11faace: type = 5 ColorModel: #pixelBits = 24 numComponents = 3 color space = java.awt.color.ICC_ColorSpace@1ebbfde transparency = 1 has alpha = false isAlphaPre = false ByteInterleavedRaster: width = 1691 height = 1269 #numDataElements 3 dataOff[0] = 2>
    I have even tried creating a new buffered image but still have the same problem:
    (suggested by http://forum.java.sun.com/thread.jspa?forumID=20&threadID=665585) "Java Forums - ImageIO: scaling and then saving to JPEG yields wrong colors"
            try
                java.awt.image.BufferedImage bi = javax.imageio.ImageIO.read( new java.io.File("javabug.jpg") );
                java.awt.image.BufferedImage out = new java.awt.image.BufferedImage( bi.getWidth(), bi.getHeight(), java.awt.image.BufferedImage.TYPE_INT_RGB );
                java.awt.Graphics2D g = out.createGraphics();
                g.drawRenderedImage(bi, null);
                g.dispose();
                javax.imageio.ImageIO.write( out, "jpg", new java.io.File("badcolors.jpg") );
            catch ( java.io.IOException ioe )
                ioe.printStackTrace();
            }I have used the following which works but does not use the ImageIO api. However, I tried using the ImageIO to write and it worked for writing which leads me to believe there is a problem with the reader.
    (suggested by http://developers.sun.com/solaris/tech_topics/java/articles/awt.html "Server-Side AWT")
            try
                java.awt.Image image = new javax.swing.ImageIcon(java.awt.Toolkit.getDefaultToolkit().getImage("javabug.jpg")).getImage();
                java.awt.image.BufferedImage bufferedImage = new java.awt.image.BufferedImage( image.getWidth( null ), image.getHeight( null ), java.awt.image.BufferedImage.TYPE_INT_RGB );
                java.awt.Graphics g = bufferedImage.createGraphics();
                g.setColor( java.awt.Color.white );
                g.fillRect( 0, 0, image.getWidth( null ), image.getHeight( null ) );
                g.drawImage( image, 0, 0, null );
                g.dispose();
                com.sun.image.codec.jpeg.JPEGImageEncoder encoder = com.sun.image.codec.jpeg.JPEGCodec.createJPEGEncoder( new java.io.FileOutputStream( "goodcolors.jpg" ) );
                encoder.encode( bufferedImage );
                javax.imageio.ImageIO.write( bufferedImage, "jpg", new java.io.File("goodiocolors.jpg") );
                javax.imageio.ImageIO.write( bufferedImage, "png", new java.io.File("goodiocolors.png") );
            catch ( java.io.IOException ioe )
                ioe.printStackTrace();
            }BTW, the following does not work either:
                java.util.Iterator readers = javax.imageio.ImageIO.getImageReadersByFormatName( "jpg" );
                javax.imageio.ImageReader reader = ( javax.imageio.ImageReader ) readers.next();
                javax.imageio.stream.ImageInputStream iis = javax.imageio.ImageIO.createImageInputStream( new java.io.File("javabug.jpg") );
                reader.setInput( iis, true );
                java.awt.image.BufferedImage bufferedImage = reader.read( 0 );

    I figured out the problem. It was an actual BUG in the JDK!
    The code failed with the following JDKs:
    java version "1.5.0_01"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_01-b08)
    Java HotSpot(TM) Client VM (build 1.5.0_01-b08, mixed mode, sharing)
    java version "1.5.0_03"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_03-b07)
    Java HotSpot(TM) Client VM (build 1.5.0_03-b07, mixed mode)
    The code ran sucessful with this JDK:
    java version "1.5.0_06"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
    Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)
    If you are using the ImageIO classes, I highly suggest you upgrade to the latest JDK.
    Best,
    Scott

  • HT4623 hi i have an iphone 4s and has not been a year yet no water damage but there is a white cloudy screen around the edges and will start going crazy with different colors and all someone please gel what is wrong with it?

    hi
    i have an iphone 4s and has not been a year yet no water damage but there is a white cloudy screen around the edges and will start going crazy with different colors and all someone please gel what is wrong with it?

    I switched the usb port and did the whole recovery holding of the buttons ect... And it worked, the computer detected the phone and i was able to click restore. However, the computer says preparing iphone for restore and it is still doing the restarting thing where the apple fades away and then comes back like it is restarting. If i can somehow get past this i will be able to go back to factory settings and resolve my problem, but this is where i am stuck.

  • Paintbrush and paint bucket use wrong color in PE6 for Mac

    Hi.  I am trying to use either the paintbrush or paint bucket tool to add a solid color in a layer.  I choose a foreground color and apply the tool and instead of using the color I've chosen, it uses an old color I used several photos ago.  (I chose the old color with the eyedropper tool in case that matters).  No matter what I do, it seems that this old color is stuck in both the paintbrush and paint bucket.  I've tried choosing a different color with the eyedropper, and although that color appears as the foreground color, the old "bad" color still applies when I use either the paintbrush or bucket tool.  I have reset the tools (no luck), rebooted photoshop (no luck), tried switching back to the default (B&W) colors (still no luck).  Does anyone have any suggestion what I can try?  I'm new to the forum and have tried searching for this issue, but can't find it.  I apologize if this is an old issue.  Thank you for your help.

    Hi, thank you for this suggestion.  I will try it, and it also sounds useful for lots of quirky things.  In the meantime, I tried something else that solved my problem. I reset the eyedropper tool and picked another color with it and it cleared it out.  I had reset all the tools, but somehow it didn't work until I did this.  Thank you for your help.

  • Problem with colorized grayscale TIFF printing as solid color fill

    I have a grayscale TIFF that was created in PSD CS5, placed into an AI CS5 file and then colorized with a PMS color. The resulting effect on screen is correct, but when I go to print, it prints a solid (100%) fill of the PMS where the TIFF image should be. I have double and triple checked to make sure the TIFF is grayscale, and I have also played around with various Transparency Flattening settings in AI (both in the file, and in the print window). Nothing seems to work. I even tried a work-around by creating the TIFF as a monotone PMS in PSD, and again it places properly in AI and looks good up until printing when it outputs as a solid 100% PMS. The grayscale TIFF prints correctly from AI if it's NOT colorized, but the minute I add color, it prints as a solid fill. The monotone PMS TIFF never prints correctly from AI. I'm out of good ideas (or any ideas, frankly).
    Any ideas as to what I'm doing wrong? Any and all help would be greatly appreciated!

    Make sure you are not placing the image into a rectangle, similar to InDesign image placement.  The .tiff should be placed as a single element.  Then, select just the .tiff and assign a fill to it.

  • Mail- Images color and contrast?

    Why is it that Apple forgot color management in the Mail program. I am a photographer and I have my images approved by the client via email. Shoot to CaptureOne Pro then Process raw to tiff open in Photoshop and the color and contrast match convert to Jpeg and attach to email and it looks muddy in the email. Clients respond to me image looks flat what is wrong with it. All my clients use Adobe 1998 color space. I have to tell them to open it in photoshop and they always say "Oh thats better"
    Am I missing the option to use Adobe 1998 instead of sRGB in the mail program? Some of my clients use the Jpegs for placement in their layouts so I need to keep the Adobe 1998 color space and not convert it to sRGB just so it will look right in one of a series of programs.

    Why is it that Apple forgot color management in the Mail program.
    I assume because images are sent as attachments which appear inline or viewed in place within the body of the message by default with the Mail.app which is not the same with all email clients.
    If you send such attachments to a recipient using Windows Outlook or Outlook Express, the attachments will appear as attached files only which must be opened separately in order to view.
    I don't believe the majority of people that use the Mail.app need it to be used in such a fashion and I don't believe any email client has anywhere near Photoshop's color management capabilities since this is not what an email client is primarily designed for.

  • Eyedropper in PS CS6 picking wrong color

    My eyedropper started picking the wrong color!  I ahve reset and reinstalled PS - and still have this problem.  No matter what color I click the eyedropper on, it picks a shade darker than what I want.  Anyone have any ideas?  Like I said, I am running PS CS6 on OS Mountain Lion.

    hanci wrote:
    I also have problems with the eyedropper in RGB mode. I have a blue background color and when selecting it with the eyedropper I get #244f69 when I'm in RGB mode. And if I use that color in CSS on a website, the color gets darger than the original color in Photoshop. But if I change to CMYK mode and use the eyedropper again, then i get this code on the same background #00516a. And with that code I get the color I want on the website.
    Adobe Photoshop Version: 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00) x64
    Am I doing something wrong?
    Apart from your Photoshop needing updated to at least 13.0.1, the problem may be that your RGB document, which you're sampling in Photoshop, does not have sRGB profile and/or your Web browser is not colour managed and/or your computer is not using a correctly calibrated monitor profile and/or something else.

  • Wrong colors when printing to HP Colorlaser Jet 4550 PCL 5c

    I just upgraded from Labview 5.1.1 to Labview 6.1 on a Windows 95 Compaq Notebook. All the plot colors in 8 plot XY Graph indicator printed correctly on our network HP Colorlaser Jet 4550 PCL 5c using Labview 5.1.1. When I print the graph in Labview 6.1, sometimes some of the plot colors in the graph are wrong. In fact one of the plot switches color about 2/3 of the way across the X-axis. What is really weird is that the plot colors always print correctly in the legend. The VI prints the graph programically, but I also get the same inconsistent results when I copy the XY Graph to a new VI and use the print window comand in the file menu.
    In my Labview preferences I use standard printing with colors and di
    thering is turn on. The colors are correct when I programically save the front panel to either bmp, jpeg, or png files.
    What causing this strange behavior?

    Greg,
    Thanks for your suggestion; however, it did not solve the problem. I set the line thickest to the maximum. Then I tried with and without dithering. The results were still inconsistent. Sometimes I got the correct colors; othertimes, some plots had the wrong colors. I attached two gif files as examples. The first shows the correct colors. The second shows that the 1st plot is yellow instead of blue. Also the 4th plot is green instead of red for the 1st 80% of the plot. Then it switches to the correct color, red. I have other graphs with different plots with the wrong colors. Notice that the colors in the legend are always correct.
    Attachments:
    Good.gif ‏105 KB
    Bad.gif ‏108 KB

Maybe you are looking for