This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#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
http://support.leadtools.com/SupportPortal/CS/forums/AddPost.aspx?ForumID=4
but
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
#2
Posted
:
Wednesday, January 28, 2009 7:32:31 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
Are you referring to this forum post?
http://support.leadtools.com/SupportPortal/CS/forums/11441/ShowPost.aspx#11441
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.