Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Tuesday, February 6, 2007 3:26:13 PM(UTC)
zyoncore

Groups: Registered
Posts: 2


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


 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Wednesday, February 7, 2007 12:27:02 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,328

Was thanked: 1 time(s) in 1 post(s)

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
 
#3 Posted : Monday, February 12, 2007 7:24:57 AM(UTC)
zyoncore

Groups: Registered
Posts: 2


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

 
#4 Posted : Tuesday, February 13, 2007 4:21:36 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,328

Was thanked: 1 time(s) in 1 post(s)

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
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2020, Yet Another Forum.NET
This page was generated in 0.177 seconds.