Color changes after rotate image

Hi,
after rotate the "special" image (contains color space) the colors are changing.
1. original image
http://www.magix-photos.com/mediapool00/67/FC/3E/40/7E/74/11/D8/8F/AE/D1/59/D4/5B/F1/36/oma/10/C3E538A09A4211DBAE7417E2D45BF136.jpg
2. rotate 4 times (each time 90�)
http://www.magix-photos.com/mediapool00/67/FC/3E/40/7E/74/11/D8/8F/AE/D1/59/D4/5B/F1/36/oma/10/E19E8F409FBA11DBAFB497F6D45BF136.jpg
3. rotate 8 times (each time 90�)
http://www.magix-photos.com/mediapool00/67/FC/3E/40/7E/74/11/D8/8F/AE/D1/59/D4/5B/F1/36/oma/10/22BB57A09DEB11DB9E82003A55B2433B.jpg
I'm using JDK 1.5.0_09 and JAI 1.1.3-beta.
This is my code for rotate image:
    public BufferedImage rotateImage(BufferedImage image, int angle, int x, int y) {
        if (logger.isDebugEnabled()) {
            logger.debug("rotateImage(image, '" + angle + "', '" + x + "', '" + y + "') entered");
        if (image == null) {
            logger.error("rotateImage() failed, because image is null");
            return null;
        // convert angle in radius angle
        float radAngle = (float) ((float) angle * (Math.PI / 180.0F));
        BufferedImage newImage = null;
        RenderedOp render = null;
        try {
            ParameterBlock pb = new ParameterBlock();
            // image
            pb.addSource(image);
            // rotate about x point
            pb.add((float) x);
            // rotate about y point
            pb.add((float) y);
            // rotate with radius angle
            pb.add(radAngle);
            // interpolation
            pb.add(Interpolation.getInstance(Interpolation.INTERP_BILINEAR));
            // render
            render = JAI.create("Rotate", pb);
            newImage = render.getAsBufferedImage();
        catch (IllegalArgumentException iae) {
            logger.error("rotateImage() failed", iae);
            return null;
        finally {
            if (render != null) {
                // clean memory
                render.dispose();
        return newImage;
    }Has anybody idea what is going wrong?
Best Regards,
Rafal

You probably have Photoshop set up to not color manage. That is not a good idea. Look
here in the first images for how to set up your color management in photoshop.

Similar Messages

  • CS : Background color changes after saving image to jpeg,

    Hi,
    We have written a script for automatically saving the image to a JPEG format file. We are using VB.NET along with CS Script. To achieve that, we are doing the following:
    we are resizing the images and setting the mode to RGB and make it 8-Bit/channel. We are using some default background color like FFFFFF (255,255,255) and FF88FF (255,136,255). These gets changed to FEFEFE (254,254,254) and FF88FF (255,136,255) changes to
    'FE87FF'(254,135,255) dropping a point or so.
    If any one works on that kindly let me know what is the problem. How to prevent the changes of background color.
    Regards,
    Amitabh

    Hi,
    We have written a script for automatically saving the image to a JPEG format file. We are using VB.NET along with CS Script. To achieve that, we are doing the following:
    we are resizing the images and setting the mode to RGB and make it 8-Bit/channel. We are using some default background color like FFFFFF (255,255,255) and FF88FF (255,136,255). These gets changed to FEFEFE (254,254,254) and FF88FF (255,136,255) changes to
    'FE87FF'(254,135,255) dropping a point or so.
    If any one works on that kindly let me know what is the problem. How to prevent the changes of background color.
    Regards,
    Amitabh

  • Color change after exporting from Lightroom

    I noticed a drastic color change after exporting a file from Lightroom to a JPEG file today. I have been using Lightroom for a while, and it never happened before. I am assuming that I changed the setting somehow and I cannot find how to fix it.
    Here is the original.
    After exporting to a JPEG. The color is so drastically different. I tried both sRGB and AdobeRGB and they turn out to have the same problem.
    It is not as clear as JPEG files, but edited files with Photoshop CS5 also looks slightly different viewed on Lightroom.
    I would appreciate it if anyone could help me.  Thank you so much for your help!

    Thanks everyone for looking into my problem!
    >Can you upload a sample of each
    >* Raw File
    >* XMP Sidecar
    >* Exported JPEG
    I somehow can't find XMP sidecar files in my folders.... So instead, I exported the JPEG file to the 2nd JPEG file, hoping you can compare those two JPEG files.
    The colors get lighter and lighter every time I export the files. I uploaded those files (RAW, 1st JPEG, 2nd JPEG) on line. I also changed the file samples from the original post because I can't add watermarks.
    I checked my flles, but there is no preset applied to the JPEGs.
    I am thinking of unistallng Lightroom and reinstalling it and see what happens.
    Thanks!
    1. The data of the RAW file: http://yuko-hirao-photo.hechtmail.com/others/DSC00530.ARW
    2. Data of the GPEG exported from the RAW: http://yuko-hirao-photo.hechtmail.com/others/DSC00530test_upload_01.jpg
    3. Data of the JPEG exported from above JPEG: http://yuko-hirao-photo.hechtmail.com/others/DSC00530test_upload_01test_upload_01.jpg

  • Color change when transferring image from Photoshop to After Effects

    Hi everyone,
    I am trying to import a logo from photoshop CS6 to After Effects CS6, however the black color within the image changes to a dark grey when it gets into AE. I noticed on the color picker in PS that it changes to the same grey color that is used as the replacement web safe color. Therefore I'm assuming AE is just converting everything into web safe colors.
    Is there something I need to change in AE to allow me to import the image and keep all the original non web safe photoshop colors?
    Sorry if this is a very basic question thats been answered before, I couldn't seem to find the answer within these forums.
    Many thanks in advance,
    Spencer

    This has nothing to do with web safe. You are making a mess of color management/ color profiles. You have soemthing enabled in PS and since AE by default doesn't use any color managemnt and just assumes plain sRGB, the colors change. There's no easy explanations here, but you have soem reading up to do about color management in general and also specifically how Photoshop corrects for monitor profiles and how to use the Proof Preview to compensate for that or how to establish a workflwo that mimicsa AE's "unmanaged" colorspace.
    Mylenium

  • Color change after merging to HDR Pro, going back into Lightroom

    I recently updated Lightroom and now when I "merge to HDR Pro in PS" the photo then comes back into lightroom with highly elevated contrast.  I have set the color options to ProPhotoRGB in Lightroom and Photoshop. and the image looks fine when going from LR to PS, and it looks fine in "preview" after saving the image as a TIFF.  But once that TIFF gets imported back into LR it has all those weird color changes.   I'm not sure what to do, and I never had this problem until I recently updated photoshop and lightroom.  Any help you would be appreciated. thanks!

    The image will look different in PS than in LR. PS uses the embedded preview and LR uses the actual 32 bit image data. You need to apply the LR Develop module Basic panel Tone settings to the 32 bit HDR TIFF.

  • Why is the color changed after export?

    Hi
    The colors of my movie change after i export them.
    I tried to find the anser on all kind of forums but i believe i'm the only one with this problem.
    My settup:
    Mac 24GB 1333MHz DDR3
    Eizo CG221

    Here are some screenshots.
    I've made no color correction.
    If you look at the preview, you see it's saturated and the colors are off. And after the export it's back to the origanal colors.
    Here are some more specs:
    Footage: Proress 422
    Sequence settings:

  • Application background color changes after sometime

    Hi All,
    We have an R12.1.1 instance on solaris and we are facing a strange problem.
    The background color of the application changes to blue suddenly and the Users are not able to properly see the links which are in blue. If we bounce Apache, it comes back to normal but after sometime the problem comes back.
    Please check the below two pictures to understand exactly how the color change is happening.
    pic 1: normal color - http://www.esnips.com/doc/f9614bb5-cb07-4d8e-83bc-9aa234240a93/1
    pic 2: changed color - http://www.esnips.com/doc/d3a759e7-f628-4390-8690-36b05e361c66/2
    Kindly help me in getting this issue resolved.
    Thanks.

    Hi Helios, following are the messages in apache error log file immediately received after starting up the Apps services.
    [Mon Oct  4 06:25:20 2010] [notice] Oracle-Application-Server-10g/10.1.3.4.0 Oracle-HTTP-Server configured -- resuming normal operations
    [Mon Oct  4 06:25:20 2010] [notice] Accept mutex: fcntl (Default: fcntl)
    [Mon Oct  4 07:25:04 2010] [error] [client 172.16.1.136] [ecid: 1286162704:10.100.1.200:19224:0:10,0] File does not exist: /db2/orasp/inst/apps/PROD_oratdb/p
    ortal/favicon.ico
    [Mon Oct  4 07:26:29 2010] [error] [client 172.16.1.136] [ecid: 1286162789:10.100.1.200:18596:0:38,0] Directory index forbidden by rule: /db2/orasp/apps/apps
    _st/comn/java/classes/
    [Mon Oct  4 07:26:36 2010] [error] [client 172.16.1.136] [ecid: 1286162796:10.100.1.200:19349:0:3,0] File does not exist: /db2/orasp/apps/apps_st/comn/java/c
    lasses/oracle/forms/engine/RunformBundle_ar_AE.class
    [Mon Oct  4 07:26:36 2010] [error] [client 172.16.1.136] [ecid: 1286162796:10.100.1.200:19349:0:4,0] File does not exist: /db2/orasp/apps/apps_st/comn/java/c
    lasses/oracle/forms/engine/RunformBundle_ar_AE.properties
    [Mon Oct  4 07:26:44 2010] [error] [client 172.16.1.136] [ecid: 1286162804:10.100.1.200:19355:0:6,0] File does not exist: /db2/orasp/apps/apps_st/comn/java/c
    lasses/oracle/forms/engine/RunformBundle_ar_US.class
    [Mon Oct  4 07:26:45 2010] [error] [client 172.16.1.136] [ecid: 1286162805:10.100.1.200:19355:0:7,0] File does not exist: /db2/orasp/apps/apps_st/comn/java/c
    lasses/oracle/forms/engine/RunformBundle_ar_US.properties
    [Mon Oct  4 08:04:06 2010] [error] [client 10.10.111.1] [ecid: 1286165046:10.100.1.200:19356:0:24,0] Directory index forbidden by rule: /db2/orasp/apps/apps_
    st/comn/java/classes/
    [Mon Oct  4 08:04:09 2010] [error] [client 10.10.111.1] [ecid: 1286165049:10.100.1.200:19224:0:30,0] File does not exist: /db2/orasp/apps/apps_st/comn/java/c
    lasses/oracle/forms/engine/RunformBundle_ar_AE.class
    [Mon Oct  4 08:04:09 2010] [error] [client 10.10.111.1] [ecid: 1286165049:10.100.1.200:19224:0:31,0] File does not exist: /db2/orasp/apps/apps_st/comn/java/c
    lasses/oracle/forms/engine/RunformBundle_ar_AE.properties
    [Mon Oct  4 08:04:12 2010] [error] [client 10.10.111.1] [ecid: 1286165052:10.100.1.200:18595:0:55,0] File does not exist: /db2/orasp/apps/apps_st/comn/java/c
    lasses/oracle/forms/engine/RunformBundle_ar_US.class
    [Mon Oct  4 08:04:12 2010] [error] [client 10.10.111.1] [ecid: 1286165052:10.100.1.200:18595:0:56,0] File does not exist: /db2/orasp/apps/apps_st/comn/java/c
    lasses/oracle/forms/engine/RunformBundle_ar_US.properties
    [Mon Oct  4 08:46:00 2010] [error] [client 10.10.11.11] [ecid: 1286167560:10.100.1.200:19356:0:59,0] File does not exist: /db2/orasp/inst/apps/PROD_oratdb/po
    rtal/favicon.ico
    [Mon Oct  4 08:47:23 2010] [error] [client 10.10.111.1] [ecid: 1286167643:10.100.1.200:18598:0:93,0] mod_oc4j: There is no oc4j process (for destination: app
    lication://forms) available to service request.
    [Mon Oct  4 08:47:23 2010] [error] [client 10.10.111.1] [ecid: 1286167643:10.100.1.200:18597:0:126,0] File does not exist: /db2/orasp/apps/apps_st/comn/java/
    classes/oracle/ewt/alert/resource/AlertBundle_ar_US.class
    [Mon Oct  4 08:47:23 2010] [error] [client 10.10.111.1] [ecid: 1286167643:10.100.1.200:18597:0:127,0] File does not exist: /db2/orasp/apps/apps_st/comn/java/
    classes/oracle/ewt/alert/resource/AlertBundle_ar_US.properties
    [Mon Oct  4 08:51:45 2010] [notice] Oracle-Application-Server-10g/10.1.3.4.0 Oracle-HTTP-Server configured -- resuming normal operations
    [Mon Oct  4 08:51:45 2010] [notice] Accept mutex: fcntl (Default: fcntl)
    [Mon Oct  4 08:54:39 2010] [error] [client 172.16.1.75] [ecid: 1286168079:10.100.1.200:20307:0:5,0] Directory index forbidden by rule: /db2/orasp/apps/apps_s
    t/comn/java/classes/
    [Mon Oct  4 08:54:50 2010] [error] [client 172.16.1.75] [ecid: 1286168090:10.100.1.200:20660:0:3,0] File does not exist: /db2/orasp/apps/apps_st/comn/java/cl
    asses/oracle/forms/engine/RunformBundle_ar_AE.class
    [Mon Oct  4 08:54:50 2010] [error] [client 172.16.1.75] [ecid: 1286168090:10.100.1.200:20660:0:4,0] File does not exist: /db2/orasp/apps/apps_st/comn/java/cl
    asses/oracle/forms/engine/RunformBundle_ar_AE.properties
    [Mon Oct  4 08:54:53 2010] [error] [client 172.16.1.75] [ecid: 1286168093:10.100.1.200:20309:0:6,0] File does not exist: /db2/orasp/apps/apps_st/comn/java/cl
    asses/oracle/forms/engine/RunformBundle_ar_US.class
    ####################################################################################

  • Applications background color changes after sometime

    Hi All,
    We have an R12.1.1 instance on solaris and we are facing a strange problem.
    The background color of the application changes to blue suddenly and the Users are not able to properly see the links which are in blue. If we bounce Apache, it comes back to normal but after sometime the problem comes back.
    Please check the below two pictures to understand exactly how the color change is happening.
    pic 1: normal color - http://www.esnips.com/doc/f9614bb5-cb07-4d8e-83bc-9aa234240a93/1
    pic 2: changed color - http://www.esnips.com/doc/d3a759e7-f628-4390-8690-36b05e361c66/2
    Kindly help me in getting this issue resolved.
    Thanks.

    Hi All,
    We have an R12.1.1 instance on solaris and we are facing a strange problem.
    The background color of the application changes to blue suddenly and the Users are not able to properly see the links which are in blue. If we bounce Apache, it comes back to normal but after sometime the problem comes back.
    Please check the below two pictures to understand exactly how the color change is happening.
    pic 1: normal color - http://www.esnips.com/doc/f9614bb5-cb07-4d8e-83bc-9aa234240a93/1
    pic 2: changed color - http://www.esnips.com/doc/d3a759e7-f628-4390-8690-36b05e361c66/2
    Kindly help me in getting this issue resolved.
    Thanks.

  • Photoshop cs4 color changes after I save it from psd to jpg

    I have used  cs2 for years and just got cs4 and I always work on my pictures in raw then save them as psd then open them in photoshop and work on them and save as jpg for printing.
    I can't seem to be able to do how I used to.
    I open the picturte in raw and fix the color until it looks good, then open it in photoshop and it still looks good and I save it as jpg then the whole thing goes down hill here I view it in Windows live gallery and the color is all off, its way over concentrated and looks red and jsut way different then it did in photoshop and thats how it prints too.
    Any idea what it can be?
    Why soon as I save it as jpg the image looks so different.
    Please help, I'm working on clients pictures and don't seem to be able to save them so they are right.

    okay I see that this is getting little more complicated.
    So now I see it isn't anything with windows.
    I do edit the picture in raw and it looks good and save it as psd then when I open it in photoshop it looks right and if I select view-proof colors then it comes out with that crazy color as it will look after I save it.
    So going from raw where i edit it looks good then after I save it even if I save it there as jpg and open on photoshop it alway changes when it is checked on proof color.
    Is anyone on here that know whay this is happening? how do I make the pictures stay the same after I edit them in raw?

  • Color change after 10.4.8 update

    After the update, my eyes are picking up a universally light, bluish tinge (not as in light-blue, but as in a small amount of blue in the white) on my display (which is just the Macbook's LCD display, not an external one). Has anyone encountered this? Does anyone know a solution? I have tried to calibrate, but that didn't change anything. Maybe my eyes have something wrong with them, but the whites don't seem as "white" and the silver displayed on Safari's top toolbar doesn't seem as crisp.

    I was able to return the previous color profile by copying a file called Color LCD-4271780.icc from another 10.4.7 system.

  • Problem with scrolling after rotating image

    Hi,
    I am trying to write a simple image viewer in flex. I came
    across a problem which I've been trying to solve through the past 4
    days. In my example I want to rotate the image and then scroll
    around once its been rotated (Say after the user would zoom in). If
    I rotate the image by 90,180 or 270 deg and then move the scroll
    bars the image disappears. Has anyone else had this problem? Any
    suggestions welcome, thanks!
    ===================================================================
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Panel x="10" y="10" width="816" height="715"
    layout="absolute" title="Viewer">
    <mx:Button x="365.5" y="643" label="Rotate"
    click="rotateImage()"/>
    <mx:VBox id="vb" x="10" y="10" height="604"
    width="776">
    <mx:Image id="img" width="777" height="618">
    <mx:source>file:///C:/example.jpg</mx:source>
    </mx:Image>
    </mx:VBox>
    </mx:Panel>
    <mx:Rotate id="rotate" angleFrom="{angle-90}"
    angleTo="{angle}" target="{img}" />
    <mx:Script>
    <![CDATA[
    [Bindable]
    public var angle:int=0;
    private function rotateImage():void {
    rotate.end();
    angle += 90;
    rotate.play();
    ]]>
    </mx:Script>
    </mx:Application>

    Thanks for a quick response. I did something simillar before
    (using the Canvas instead of the VBox) your suggestions fix the
    scrolling issue but it still does not work the way it should. If
    the rotation is 0 then the scroll bars "fit" the image (So you
    don't go out and see any white space). If the rotation is say 90
    than it doesn't allow the image at full height, little bit of the
    page and no scroll bar to move down, also it gives you a lot of
    room to move to the side event though you can already see the image
    at full width. It's event worse when you do 180 deg rotation. Do
    you think this is something that is achievable (to have scroll bars
    that fit the image regardles of the rotation) ? Thanks
    ================================================================================
    <!-- <mx:VBox id="vb" x="10" y="10" height="604"
    width="776" autoLayout="false"> -->
    <mx:Canvas x="10" y="10" width="776" height="604"
    autoLayout="false">
    <mx:Image id="img">
    <mx:source>file:///C|/Documents and Settings/All
    Users/Documents/My Pictures/Sample
    Pictures/Winter.jpg</mx:source>
    </mx:Image>
    </mx:Canvas>
    <!-- </mx:VBox> -->

  • Text color changes after render while using timecode generator/VF tool

    Hi,
    I'm having a problem with the timecode generator/viewfinder tool. When I have both a Gaussian Blur (set on something other than Alpha + RGB) and a VF or Timecode generator effect in the filters, it seems to create a bug where the color I want for the viewfinder (REC) text shows up correctly pre-render, but changes to an arbitrary color after the render. For example, when I set the color to red, it becomes cyan after rendering. Anyone else experienced this problem or have a solution? Thanks.

    Dear Pallavi,
    Very useful post!
    I am looking for similar accelerators for
    Software Inventory Accelerator
    Hardware Inventory Accelerator
    Interfaces Inventory
    Customization Assessment Accelerator
    Sizing Tool
    Which helps us to come up with the relevant Bill of Matetials for every area mentioned above, and the ones which I dont know...
    Request help on such accelerators... Any clues?
    Any reply, help is highly appreciated.
    Regards
    Manish Madhav

  • 5800 XM Screen color change after the firmware upd...

    I not sure if any other facing this problem also, but my Nokia 5800 XM screen color will change for a while from time to time then back to normal since after I have the firmware updated to v20.0.012.

    this is a user to user forum, you will not get official answer from nokia on these boards, you can officialy launch a compliant, or question by using the 'contact us button' on the top right of the page next to repair&recycle tab. 
    You know what I love about you the most, the fact that you are not me ! In love with technology and all that it can offer. Join me in discovery....

  • Dynamic form font color changes after saving

    I have a dynamic form that before the user clicks inside a textfield ghost text appearance is set to red once the user starts typing I have an event set to turn the font to black.
    The problem is, once form is saved and reopened the font color is red instead of black. How can I get the font color to remain black?
    I am thinking that script should be in the PreSave event if so, please provide an example of how it should be written.
    Thanks

    I have several events happening in the text field
    for the ghost text (tool tip) I have set an initialize event: (by the way I did choose the color red for the font in the color picker for the tooltip color)
    this.execEvent("exit");
    this.format.picture.value = "null{' " + this.assist.toolTip.value + " '}";   
    Enter event: (this changes the font to black and bullets appear)this.fontColor + "0,0,0";
    this.font.posture = "normal";
    if(this.rawValue === null)
        this.rawValue = "l ";
    Exit event
    if (this.isNull)
       this.fontColor = "255,0,0,";
       this.fontposture = "italic";

  • Color changes after update

    I have just upgraded to 10.4.10 this morning,
    Some of my Aperture library files have now taken on a "magenta hue", especially noticeable in the neutral area's. The files are Nikon D200.nef images.
    I have had made no other recent changes or upgrades to the system other this update.
    Is it possible that the upgrade to 10.4.10 could be responsible for this.
    iMac 24 inch 2.3Ghz Dual Core   Mac OS X (10.4.9)   3 GB Ram, GeForce 7600 GT

    Many thanks for your suggestion...it solved the problem
    It would appear that the update for some reason changed my screen profile from RGB 1998 in "Proofing Profile" to a media profile.
    Thanks for your help

Maybe you are looking for

  • MacBook Pro 15 '' (mid 2010) won't boot up

    Hi, This is my first post in the Apple Foruns, been lurking for awhile, however, have never run into any problems with my MacBook Pro. A couple of days ago, I hav had several situations where while using my Macbook, it would crash, the Beachball woul

  • Deploying web application in OAS Release 3 (10.1.3.1.0) in exploded format

    How to deploy a web application in exploded format in OAS server.

  • Aperture doesn't open after clean installation of Mountain Lion

    I have just done a clean installation  of mountain lion. After that, I have downloaded my copy of aperture from the store and installed it ( i think, just becase when done, at the store says that it is installed ) But when I try to launch aperture fr

  • USR02-LTIME - Last logon Time

    Hi All we have to trace the last logon time of CRM webclient users but USR02-LTIME does not write the right time, in this sense: - you logon at 11:00 with user TEST - you see USR02-LTIME = 11:00 - you use the webclient without logoff and you see in U

  • Business Rules in end2end-po-processing

    I am trying to distinguish between the BPEL component and the Oracle Business Rules component within the Oracle SOA Suite. I was curious if there were any aspects of the Oracle Business Rules component in the end2end-po-processing tutorial? If so, I