Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

Re: ICC profile - don´t save the ICC
Started by zyoncore at 02-06-2007 20:26. Topic has 3 replies.

Print Search « Previous Thread Next Thread »
  02-06-2007, 20:26
zyoncore is not online. Last active: 2/12/2007 5:16:37 PM zyoncore

Not Ranked
Joined on 04-13-2006
Posts 2
ICC profile - don´t save the ICC
Reply Quote
Hello,

I have de falowing problem on .net project. I´m used raster image.

I have a file .JPG with ICC profile, I open and manipule the file with raster image and save using the factor Q = 25.

After save the new file created don´t have more the original ICC profile.

Do You have any sample or solutions or any information to My project.

My regards, Ideraldo



   Report 
  02-07-2007, 5:27
Maen Hasan is not online. Last active: 10/5/2008 10:18:54 AM Maen Hasan



Top 10 Posts
Joined on 08-05-2004
Posts 1,747
Re: ICC profile - don´t save the ICC
Reply Quote
Hello,

What is the exact LEADTOOLS version that you use?
Can you please provide me with a code snippet that shows how do you save the JPEG file?
What is the build number of the LEADTOOLS DLLs that you use?

Thanks,
Maen Badwan
LEADTOOLS Technical Support

   Report 
  02-12-2007, 12:24
zyoncore is not online. Last active: 2/12/2007 5:16:37 PM zyoncore

Not Ranked
Joined on 04-13-2006
Posts 2
Re: ICC profile - don´t save the ICC
Reply Quote

Hello,   I used version 14.5

The DLL  number is 14.5.0.4

About the code .net

RasterCodecs.CodecsPath = "C:\Arquivos de programas\LEAD Technologies, Inc\LEADTOOLS 14.5\Bin\Dotnet\v11"
  Dim codecs As New RasterCodecs
  Dim rasterImage As RasterImage = codecs.Load("c:\test\image.jpg")
  codecs.Options.Jpeg.Save.QualityFactor = 25
  codecs.Save(rasterImage, "c:\test\newImage.jpg", RasterImageFormat.Jpeg, rasterImage.BitsPerPixel)

My regards

Ideraldo


   Report 
  02-13-2007, 9:21
Maen Hasan is not online. Last active: 10/5/2008 10:18:54 AM Maen Hasan



Top 10 Posts
Joined on 08-05-2004
Posts 1,747
Re: ICC profile - don´t save the ICC
Reply Quote
Hello,

The feature to save and load the ICC profile from and to the image is not available in LEADTOOLS v14.5 .Net programming interface.
But this feature is available in LEADTOOLS v15 .Net as follows:
- Load the image that you want:
+-----------------------------+
Dim rasterImage As RasterImage = codecs.Load("c:\test\image.jpg")
+-----------------------------+

- Load the ICC profile from the image:
+-----------------------------+
Dim iccProfile As New IccProfileExtended()
iccProfile.ReadFromImage("c:\test\image.jpg", 1)
+-----------------------------+

- Save the image:
+-----------------------------+
codecs.Options.Jpeg.Save.QualityFactor = 25
codecs.Save(rasterImage, "c:\test\newImage.jpg", RasterImageFormat.Jpeg, rasterImage.BitsPerPixel)
+-----------------------------+

- Save the ICC profile to the saved image:
+-----------------------------+
iccProfile.WriteToImage("c:\test\newImage.jpg", 1)
+-----------------------------+

Thanks,
Maen Badwan
LEADTOOLS Technical Support

   Report 
Post
LEAD Support Fo... » Developer » Color Conversio... » Re: ICC profile - don´t save the ICC

Powered by Community Server, by Telligent Systems