Convert ios photo(mediapromise) into byteArray ?

hello
I'm trying to convert ios photo into bytearray. Because I want send the photo from iphone to AIR in laptop.
I've found some tutorial looks great and should work:
http://forums.adobe.com/post!input.jspa?container=4434&containerType=14
the method is to use "mediaPromise.open()" and get the byte data.
but I always got an error blow:
ArgumentError: Error #1063: Argument count mismatch on Main/selectHandler(). Expected 0, got 1.
dose anyone bump into the same error as me?
my code is below:
package
          import flash.display.Sprite;
          import flash.events.Event;
          import flash.events.IEventDispatcher;
          import flash.events.MediaEvent;
          import flash.events.MouseEvent;
          import flash.media.CameraRoll;
          import flash.media.MediaPromise;
          import flash.utils.ByteArray;
          import flash.utils.IDataInput;
          public class Main extends Sprite
                    public var dataSource:IDataInput;
                    public var cameraRoll:CameraRoll=new CameraRoll();
                    public var but_select:Sprite=new Sprite()
                    public function Main()
                              super();
                              but_select.graphics.beginFill(0xFF0000)
                              but_select.graphics.drawCircle(stage.stageWidth / 2, stage.stageHeight / 2, 50)
                              addChild(but_select)
                              but_select.addEventListener(MouseEvent.CLICK, selectHandler)
                    public function selectHandler():void
                              if (CameraRoll.supportsBrowseForImage)
                                        cameraRoll.addEventListener(MediaEvent.SELECT, imageSelected);
                                        cameraRoll.browseForImage();
                               else
                                trace("Image browsing is not supported on this device.");
                    private function imageSelected(event:MediaEvent):void
                            trace("Media selected...");
                              var imagePromise:MediaPromise=event.data;
                              dataSource=imagePromise.open();
                              if (imagePromise.isAsync)
                              trace("Asynchronous media promise.");
                                        var eventSource:IEventDispatcher=dataSource as IEventDispatcher;
                                        eventSource.addEventListener(Event.COMPLETE, onMediaLoaded);
                               else
                                          trace("Synchronous media promise.");
                                        readMediaData();
                    private function onMediaLoaded(event:Event):void
                              trace("Media load complete");
                              readMediaData();
                    private function readMediaData():void
                              var imageBytes:ByteArray=new ByteArray();
                              dataSource.readBytes(imageBytes);
                              trace("imageBytes= " + imageBytes)

it's wierd but the code below is working:
package
          import flash.desktop.NativeApplication;
          import flash.display.Loader;
          import flash.display.Sprite;
          import flash.display.StageAlign;
          import flash.display.StageScaleMode;
          import flash.display.graphics;
          import flash.events.ErrorEvent;
          import flash.events.Event;
          import flash.events.IEventDispatcher;
          import flash.events.IOErrorEvent;
          import flash.events.MediaEvent;
          import flash.events.MouseEvent;
          import flash.media.CameraRoll;
          import flash.media.MediaPromise;
          import flash.utils.ByteArray;
          import flash.utils.IDataInput;
          public class Main extends Sprite
                    private var cameraRoll:CameraRoll = new CameraRoll();
                    public var ball:Sprite=new Sprite()
                    private var dataSource:IDataInput;
                    private var eventSource:IEventDispatcher;
                    public function Main()
                              this.stage.align = StageAlign.TOP_LEFT;
                              this.stage.scaleMode = StageScaleMode.NO_SCALE;
                              ball.graphics.beginFill(0xFF0000)
                              ball.graphics.drawCircle(stage.stageWidth/2,stage.stageHeight/2,50)
                              addChild(ball)
                              ball.addEventListener(MouseEvent.CLICK,selectHander)
                    private function selectHander(e:MouseEvent):void
                              if( CameraRoll.supportsBrowseForImage )
  trace( "Initializing app..." );
                                        cameraRoll.addEventListener( MediaEvent.SELECT, imageSelected );
                                        cameraRoll.addEventListener( Event.CANCEL, browseCanceled );
                                        cameraRoll.addEventListener( ErrorEvent.ERROR, mediaError );
                                        cameraRoll.browseForImage();
  else
  trace( "Image browse is not supported.");
                    private function imageSelected( event:MediaEvent ):void
  trace( "Media selected..." );
                              var imagePromise:MediaPromise = event.data;
                              dataSource = imagePromise.open();
                              if( imagePromise.isAsync )
  trace( "Asynchronous media promise." );
                                        eventSource = dataSource as IEventDispatcher;
                                        trace( eventSource );
                                        eventSource.addEventListener( Event.COMPLETE, onDataComplete );               
  else
  trace( "Synchronous media promise." );
                                        readMediaData();
                    private function onDataComplete( event:Event ):void
  trace("Data load complete");
                              readMediaData();
                    private function browseCanceled( event:Event ):void
  trace( "Media select canceled." );
                              NativeApplication.nativeApplication.exit();
                    private function readMediaData():void
  trace("Main.readMediaData()");
                              var imageBytes:ByteArray = new ByteArray();
                              dataSource.readBytes( imageBytes );
                              trace("imageBytes= "+imageBytes)
  //the rest of this is just testing what we actually read
//                              trace(imageBytes.length);
//                              imageBytes.position = 0;
//                              var string:String = imageBytes.readUTFBytes( 300 );
//                              trace( string );
                    private function mediaError( error:ErrorEvent ):void
                              trace( "Error:" + error.text );
                              NativeApplication.nativeApplication.exit();

Similar Messages

  • Why can't I open the filter gallery in Photoshop CC 2014? I've converted the photo layer into a smart object, but the filter gallery selection is still grayed out.

    Why can't I open the filter gallery in Photoshop CC 2014? I've converted the photo layer into a smart object, but the filter gallery selection is still grayed out. How do I make it active?

    Please go to Help, System Info and Copy then paste here.
    Benjamin

  • How do i convert a document file into a photo file like it should be?

    Plzz help me to convert a document file into a photo fil ok??? I messed up downloading them. Ty so much guys betsypoo777

    Hi betsypoo777,
    I'm not sure that I follow. Do you have a PDF file that you want to convert to an image format? Or are you just having trouble opening your image files in the right application?
    Please provide a few more details about what's happening, and we'll see what we can do to sort things out.
    Best,
    Sara

  • I have a Canon 6d and would like to convert my raw ( CR2) photo's into dng files. Adobe DNG converter 8.4 doesn't recognise the CR2 files. How can i solve this?

    i have a Canon 6d and would like to convert my raw ( CR2) photo's into dng files. Adobe DNG converter 8.4 doesn't recognise the CR2 files. How can i solve this?

    It is possible that you are not following instructions correctly in the DNG converter. The DNG converter interface asks for the FOLDER that contains your raw images. Choose the folder, but don't open it. After you have chosen the folder, click on the Convert button. The DNG conversion process should start.  Does that help you?

  • Elements importing photos from iPhoto into nonsensical folders - how do I convert events or import into dated folders from iPhoto into elements?

    Please help! Can't seem to find the answer on the website or anywhere else online. I don't see an option to convert events from iPhoto into folders in elements. Any advice would be appreciated.

    The whole point of a program like organizer is to ignore the folders and use tags and categories instead. However, if you want to preserve the iphoto events then the way to do it is not to use "from iphoto" but rather to export each event from iphoto separately, organize your folders how you want them, where you want them and then use "from files and folders" instead.

  • IOS Photos - Proper Cloud Backup & Managemetn

    Am I missing a major point here, or is there a big gap in the iOS, iTunes, iCloud design for photo management the way most people (I would guess) want to do it? Excuse the underlining - brevity isn't my forte so trying to highlight the key points.
    Here's what I'd like to be able to do:
    Use any/all of my iPad and iPhone devices to take photos and also eat photos from my other cameras via SD card reader
    Process the photos on an iPad (view, edit, delete), so I don't have to go to a desktop/laptop to do that
    Have the photos stored in a cloud in a way that provides privacy (I still own and control them), ability to view online, ability to point others to them online, ability to manage them online including downloading originals etc etc.  Thus not forcing me to rely on local PCs, PC backups, etc etc for photo safety.
    Not have to do anything active in order for my photos to be copied to the cloud (don't want to have to remember to sit down at a computer and waste time curating my photos, after having already done that on my iPad)
    (When I say "photos" I mean little videos taken on my iOS devices and cameras also)
    My understanding of what iOS and iCloud provide is (right or wrong):
    New photos taken on each iPhone/iPad can be shared to other iOS devices on the same iTunes account using PhotoStream and iCloudBut this is just for convenient sharing across devices (not really a backup tool, keeps a rolling window or recent photos, photos aren't available online in iCloud anywhere)
    New photos taken on each device are backed up to your iTunes computer (if you choose to) and iCloud (if you choose to)
    But you can't see or use those photos on your iTunes computer - they are just part of a device backup
    And you can't see those photos online in iCloud - again, they are just part of a backup blob
    So this is all just about getting a single device back to how it was previously, including the photos it had on it at the time of the backup
    This doesn't copy photos to anywhere central or usable/viewable etc
    It also doesn't help create a single central repository of photos either on your computer or in the cloud
    You can set iTunes to sync a photos folder with your iOS device
    But this is about getting photos from the computer onto the iOS device.  It isn't about actually synchronising photos between the device and that folder
    So the photos from your device don't end up on your computer that way (ie no help at all for what I am after)
    You can use an PhotoStream app on your computer to be a client of the PhotoStream for your iTunes/iCloud account
    Again, this is just a moving windows of most recent photos so doesn't really help much with photo centralisation for backup
    Also, if there is a way to scrape the photos off PhotoStream to a central repository on your computer, it would involve sitting down and doing that manually (don't know if this is even possible)
    Therefore, as far as I can tell, iOS, iTunes and iCloud do not provide what I am after, at least not out of the box
    Independently of iOS, iTunes and iCloud:
    I know I can plug my iOS device(s) into a PC and manually copy the photos off each device them using the PC OS (Windows, OS X, whatever) support for media storage devices over USBBut this is a manual process per device, so doesn't happen automagically and therefore doesn't meet my requirements
    I know I can use the Dropbox iOS app to sync my photos from each individual device to Dropbox
    But this isn't really a central repository of photos in the cloud (think it is done on a device-by-device basis and not sure how well it deals with photos that exist on multiple devices - ie duplication etc)
    Also I may not want to use Dropbox (not stoked about their security and privacy commitments)
    I am prepared to use a third party service for managing the photos from a PC into the cloud
    I already use JungleDisk and Duplicati and am happy to configure these to copy my photos to some independent cloud storage, at least for backup purposes
    I can also open an account with Flickr, SmugMug, Picassa etc and get more online photo control that way.
    However, to do that I first have to get my photos into one central location, eg on a PC, and then I can then run a process on the PC to auto-sync from that location to the cloud
    I don't think about photos on a per-device basis.  I think about them on a single-central-library basis.  I would guess most people do.  And iOS devices are a major source of new photos these days, and I like the idea of pre-managing my library from iOS devices because it is nice and easy and you can do it in front of the TV etc in a different mind-set from opening a laptop or going to a computer. But I need to end up with all those photos as viewable and manageable in one place, and I'd ideally like that one place to be a functional, secure cloud that respects my ownership and privacy. And I'd like to avoid having to schedule my brain to remember to sit down and do active things on a computer/laptop in order to achieve that.  That is very 20th Century and not very "cloud" or "iOS".  At this point I can't seem to work out how to even get all the photos into a single place on a single computer in order to manage my own cloud syncing from there.
    Am I missing anything?

    Am I missing a major point here, or is there a big gap in the iOS, iTunes, iCloud design for photo management the way most people (I would guess) want to do it? Excuse the underlining - brevity isn't my forte so trying to highlight the key points.
    Here's what I'd like to be able to do:
    Use any/all of my iPad and iPhone devices to take photos and also eat photos from my other cameras via SD card reader
    Process the photos on an iPad (view, edit, delete), so I don't have to go to a desktop/laptop to do that
    Have the photos stored in a cloud in a way that provides privacy (I still own and control them), ability to view online, ability to point others to them online, ability to manage them online including downloading originals etc etc.  Thus not forcing me to rely on local PCs, PC backups, etc etc for photo safety.
    Not have to do anything active in order for my photos to be copied to the cloud (don't want to have to remember to sit down at a computer and waste time curating my photos, after having already done that on my iPad)
    (When I say "photos" I mean little videos taken on my iOS devices and cameras also)
    My understanding of what iOS and iCloud provide is (right or wrong):
    New photos taken on each iPhone/iPad can be shared to other iOS devices on the same iTunes account using PhotoStream and iCloudBut this is just for convenient sharing across devices (not really a backup tool, keeps a rolling window or recent photos, photos aren't available online in iCloud anywhere)
    New photos taken on each device are backed up to your iTunes computer (if you choose to) and iCloud (if you choose to)
    But you can't see or use those photos on your iTunes computer - they are just part of a device backup
    And you can't see those photos online in iCloud - again, they are just part of a backup blob
    So this is all just about getting a single device back to how it was previously, including the photos it had on it at the time of the backup
    This doesn't copy photos to anywhere central or usable/viewable etc
    It also doesn't help create a single central repository of photos either on your computer or in the cloud
    You can set iTunes to sync a photos folder with your iOS device
    But this is about getting photos from the computer onto the iOS device.  It isn't about actually synchronising photos between the device and that folder
    So the photos from your device don't end up on your computer that way (ie no help at all for what I am after)
    You can use an PhotoStream app on your computer to be a client of the PhotoStream for your iTunes/iCloud account
    Again, this is just a moving windows of most recent photos so doesn't really help much with photo centralisation for backup
    Also, if there is a way to scrape the photos off PhotoStream to a central repository on your computer, it would involve sitting down and doing that manually (don't know if this is even possible)
    Therefore, as far as I can tell, iOS, iTunes and iCloud do not provide what I am after, at least not out of the box
    Independently of iOS, iTunes and iCloud:
    I know I can plug my iOS device(s) into a PC and manually copy the photos off each device them using the PC OS (Windows, OS X, whatever) support for media storage devices over USBBut this is a manual process per device, so doesn't happen automagically and therefore doesn't meet my requirements
    I know I can use the Dropbox iOS app to sync my photos from each individual device to Dropbox
    But this isn't really a central repository of photos in the cloud (think it is done on a device-by-device basis and not sure how well it deals with photos that exist on multiple devices - ie duplication etc)
    Also I may not want to use Dropbox (not stoked about their security and privacy commitments)
    I am prepared to use a third party service for managing the photos from a PC into the cloud
    I already use JungleDisk and Duplicati and am happy to configure these to copy my photos to some independent cloud storage, at least for backup purposes
    I can also open an account with Flickr, SmugMug, Picassa etc and get more online photo control that way.
    However, to do that I first have to get my photos into one central location, eg on a PC, and then I can then run a process on the PC to auto-sync from that location to the cloud
    I don't think about photos on a per-device basis.  I think about them on a single-central-library basis.  I would guess most people do.  And iOS devices are a major source of new photos these days, and I like the idea of pre-managing my library from iOS devices because it is nice and easy and you can do it in front of the TV etc in a different mind-set from opening a laptop or going to a computer. But I need to end up with all those photos as viewable and manageable in one place, and I'd ideally like that one place to be a functional, secure cloud that respects my ownership and privacy. And I'd like to avoid having to schedule my brain to remember to sit down and do active things on a computer/laptop in order to achieve that.  That is very 20th Century and not very "cloud" or "iOS".  At this point I can't seem to work out how to even get all the photos into a single place on a single computer in order to manage my own cloud syncing from there.
    Am I missing anything?

  • How do I convert an ASP file into a PDF?

    How do I convert an ASP file into a PDF?

    None of the free Adobe Reader products (Adobe Reader Touch, Adobe Reader for iOS/Android, Adobe Reader XI for desktop) provide the support for converting ASP to PDF.
    Acrobat XI Pro and Standard (which are not free) can convert an ASP page into PDF.
    Please note that Acrobat XI Pro, Standard, and Reader XI are not compatible with the Windows RT operating system.

  • When I upload photos from my Canon Rebel 1000D to iphoto the images are labelled JPEG, yet I shoot in RAW.How do I get iphoto 11 vers9.1.3 to not convert the photos to jpeg.

    HI,
    When I upload photos from my Canon Rebel 1000D to iphoto the images are labelled JPEG, yet I shoot in RAW.How do I get iphoto 11 vers9.1.3 to not convert the photos to jpeg. I seem to have tried and read so much but just can't figure it out.  How do I get iphoto 11 vers9.1.3 to not convert the photos to jpeg. Or do a have to use a different system? I have Adobe Bridge. Or can I upload directly into photoshop?
    Also how do you install dmg's properly I am having problems installing them?
    I have a Mac OS X 13 inch Version 10.6.7
    Advice desperately needed
    Thanks
    Nlouis

    Do you have Aperture installed? I found your model on a compatibility list; however, there was a note that it requires Aperture 2 to be installed:
    http://www.apple.com/aperture/specs/raw.html
    According to this excerpt:
    To see a list of digital cameras with RAW-format support that are compatible with iPhoto, visit this Aperture webpage (any camera compatible with Aperture, Apple’s advanced photo editing and management program, is compatible with iPhoto as well)
    which is at the bottom of this page:
    http://docs.info.apple.com/article.html?path=iPhoto/9.0/en/pht41627265.html
    I may be wrong, but I interpret that info to mean you need Aperture 2 before iPhoto will work with RAW?

  • Is there any way of converting a jpeg image into a vector in Fireworks? Deity Babbage, where be thee?

    I am hoping for a quick way of converting images (jpeg etc) into a vector.
    Is this possible?
    Thanks
    Eddie

    Try this:
    http://vectormagic.com/home
    It won't work with really complex images or photos, but if you have something like a logo, it can work well. You'll need to edit the vectors it generates to smooth out some bumps and incorrect nodes, but editing a vector is much easier than drawing the whole thing from scratch.
    Hope this helps!

  • Can LR Web module converting file name hyphens into underscores be disabled

    Hi,
    I have problems when creating webpages from within LR.
    First I develop the RAW files and converts them to jpegs. Under Lightroom 3 I use the following settings under "Export location":
    Export to: Specific Folder
    Add to This Catalog: ticked
    Existing Files: Choose a new name for the exported file
    This is thus native Lightroom. For existing files the new filenames are generated with a hyphen follwed by a numeric suffix. as follows: for FileName.jpg this would be FileName-2.jpg, FileName-3.jpg.
    Afterwards I use the web module with the TTG Highslide Pro plugin to generate the webpages. For each image on the page there is a link to the original image to download it. It is here where a problem occurs. With the above mentioend naming convention (adding a hypen when files do already exist) there is no problem at all to display the photos nor as a tumbnail, nor in the slideshow.
    When trying to download the high resolution image however a problem occurs. The file can't be found. This is due to the hyperlink pointing to filenames like FileName_2.jpg and FileName_3.jpg. As the image itself is having a hyphen followed by a numeric suffix it can't be found when the link is pointing to that file using an underscore instead.
    So to me that's a little problem as I am not at the steering wheel at any of the two moments where a naming convention is applied; the automatic filename generation at time of export from Lightroom and the change of the hyphen to the underscore when generating the webpage.
    Any Idea how this can be solved? Or having an underscore used by the automatic naming in Lightroom, or using the hyphen (leaving the filename as it is) when generating the webpage with the LR web module.
    I posted that question already at the TTG forum and got the following respnse from Matthew: "Lightroom's Web module converts file name hyphens into underscores. It's not something I have any control over at all."
    Any help would be appreciated.
    Kind regards,
    Patrick

    I have the same problem in that filenames created with (for instance) photographer-place--year_month_day-filename.cr2 are exported by Lightroom 3.4.1 correctly, without change, into jpg versions, but TTG Highslide Gallery Pro (or, rather, Lightroom) forces a conversion eliminating the dashes and replacing them by underscores. TTG states on its website that this is unavoidable in the Lightroom web module, and recommends entering one's wishes in the "File Handling" tab within Lightroom Preferences.
    However, my LR preferences include the standard File Name Generation option "Replace illegal file name characters with: Dashes (-)" so this would indicate that a dash is not regarded by Lightroom as illegal and therefore should be left alone. As is in fact the case on a normal export from a raw cr2 to jpg: no change in Lightroom and therefore no problem. But export via LR via TTG causes an unwanted conversion from dashes to underscores.
    While searching the web I came across this old post http://thephotogeek.com/ttg-web-gallery-client-selections-lightroom/
    which mentions the question as a LR2 bug.
    I then exported a web gallery using LR's standard web template and here too all file names are converted from dashes to underscores, despite what is entered in LR's preferences. So my conclusion is that this remains a LR bug, and no fault of TTG.
    I am delighted with TTG and couldn't do without it, but am still stuck with this issue which shouldn't need to be an issue at all, if only LR would leave things alone.

  • IOS photo edits not preserved when I upload to Revel

    I imported my SD card into my iPad.  Since I was not connected to the Internet, I did not immediately upload my pictures to Revel.  I edited them (crop, exposure, etc.) using the built in iOS tools.  They looked great.  However, when I imported them into Revel all my edits were gone.
    Can't Revel preserve the iOS edits?
    I am using the latest iOS release and the Revel 2.0.

    You are correct that the app works this way. This  is part of the design decision for Revel to always preserve your original photo, despite edits and changes that applied on top of the original.
    If you wish to work around this and import the edit, then in the iOS Photos app, view the photo you want to import into Revel.  Long press the image until ‘Copy’ is displayed, and select that.  Switch over to Revel, and tap ‘Add.’  At the bottom of the grid of images, you’ll see “Clipboard” and the edited version of the image.  Import this, and you will have iOS-edited image in Revel. After importing this way, Revel will not be able to revert this image to its original form.
    Pattie

  • Importing 2 icloud photo streams into iPhoto

    Just as the title states..
    My wife and I just started our own seperate iCloud accounts and now it seems like we can't combine them in iPhoto.  Before we used one account and pictures were seamlessly across all devices, and now since iOS 8 and continuity out personal iPhones are more connected than we want.  So is there a way to get her photo's and my photo's into photo stream without creating a special album were we have to share them to it and the photo's automatically show up in the iCloud section?
    Thanks for any help!

    thank you.  so in order to optimize my HDD usage, I ought to import the photo into iPhoto and then delete the original folder?
    Yes, you can delete the files you imported. But don't be in a hurry. I'd back them up somewhere, until you are sure that everything imported well.
    last - is there any meta-tagging option in iPhoto?
    You can
    batch change titles, date, and description,
    add keywords
    tag faces
    and tag places on a map.

  • Direct upload from Photos app to Facebook & iOS Photos Album

    When I use the Photos app to upload photos to Facebook, it places all of the pictures in an album called iOSPhotos.  There is no option to post them just to my normal Facebook Timeline. In other words, I'm forced to select an Album.
    This is a problem because I get a huge mishmash of photos from different dates, times etc in this album called iOS Photos.  Instead of commenting on an individual upload, people end up commenting on the whole iOSPhotos album.  So you get a huge odd conversation appearing over time as more photos end up in there.
    Apple, could you please allow us to upload a photo to the timeline, without forcing it into a specific album?  Or to allow us to create a new Album on the fly?

    Once again, very aggressive and defensive response. Neither addresses the question nor aids in finding a workaround.
    The Facebook api is open to all, and allows any album or the timeline to be specified. Many other apps and platforms manage that. So the Facebook end of this is available and ready to use.
    It is an Apple choice to load to 1 specific album only, instead of offering the user a choice of album, or indeed the timeline. So the only part of this Facebook/Apple interface that needs a change to address this request is the Apple end.
    My Android kit does this nicely enough, as does my Macbook Pro , its just my IOS devices that struggle.
    It is Apple's absolute right to leave this as it is, presumably to nudge users further into the iCloud ecosystem, but it is a legitimate request and entirely within Apple's control to resolve.

  • Hot to import from IOS 8 "collections" into iPhoto?

    Umm... Ok so everything's changed again and it's a big mystery.
    How do I import photos from the new iPhone IOS 8 "collections" into iPhoto?
    When I connect my iPhone, iPhoto only accesses and displays the "Recently Added" photos, which apparently is only the last 30 days. However there are many more photos on my phone, which are found now in the "Collections" view. Good grief why do they do this? Thank you.

    Edit: Not even the photos appearing in iPhoto are accurate. There are some from well over 30 days ago, and some I took yesterday that do not appear in iPhoto with the iPhone connected. Totally random, frustrating, thanks Apple.

  • Copying a CMYK Indesign CS3 photo element into a Photoshop CS3 RGB document - color retention?

    Copying a CMYK Indesign CS3 photo element (photo silo) into a Photoshop CS3 RGB document - color retbtion issues in a Smart Object?

    What a bad idea pasting an image into Indesign instead of placing it is.
    I would recommend writing an X4 pdf without downsampling and compression and opening that pdf in Photoshop (but set to »Images« instead of »Pages«).
    And if the image is unprofiled Edit > Assign Profile with the indd’s profile before converting it to RGB.

Maybe you are looking for