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



Last Go to last post Unread Go to first unread post
#1 Posted : Tuesday, January 27, 2009 4:51:17 AM(UTC)


Groups: Registered
Posts: 1

We have an application that has been working for a while. It takes an
existing image and makes various copies of it in different sizes,
resolutions and file types for things like thumbnails, web publishing etc.

We have however now found that for some purposes we need to
copy the ICC Profile from the source image to the duplicate, I've been
trying to do this using the ReadFromImage and WriteToImage methods of the IccProfileExtended object, in a similar way to this article


using stream objects rather than paths. I get no errors but if I try
and open the file in Photoshop Elements I get the message "Could not
complete your request because an unknown or invlad JPEG marker type is
found".  If I attempt to read the stream prior to saving it to disk using LeadTools I get an invalid file type error.

I am using LeadTools Raster Image Pro 15 and C#/VS2008

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, January 28, 2009 7:32:31 AM(UTC)

Adnan Ismail  

Groups: Guests
Posts: 3,022

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

Are you referring to this forum post?

Does the code work with disk files and only fails with streams? If yes, please make sure you always re-wind the stream to its origin (seek to offset 0) before you pass it to any LEADTOOLS function.

If this doesn't solve the problem you are facing, can you isolate it in a very small test project (not your full application) and send it to me in a ZIP or RAR file so I can check it for you?

If you want to send the project, please include a sample image for it.

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-2024, Yet Another Forum.NET
This page was generated in 0.058 seconds.