LEADTOOLS Support
Imaging
Imaging SDK Questions
Invalid Width/Height when making a thumbnail
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Tuesday, June 6, 2006 9:04:30 AM(UTC)
Groups: Registered
Posts: 3
The following code used to work when I was using the free evaluation version EVAL 14.5. Upon purchase and installing the software version 14.5, I am now recieving "Invalid Width/Height" error. Any ideas?
OS is Win2000, language is C#, .Net Framework v1.1.4322,
byte[] photo;
RasterCodecs.CodecsPath = @"C:\\Program Files\\LEAD Technologies, Inc\\LEADTOOLS 14.5\\Bin\\Dotnet\\v11";
RasterCodecs codecs = new RasterCodecs();
codecs.Options.Jpeg.Save.QualityFactor = 50; // Range from 2 best qual & largest to 255.
Leadtools.Codecs.CodecsThumbnailOptions options = new CodecsThumbnailOptions();
options.Height = 192;
options.Width = 256;
IRasterImage ri = codecs.ReadThumbnail (imagePath, options, 1)
#2
Posted
:
Tuesday, June 6, 2006 10:29:30 AM(UTC)
Groups: Registered
Posts: 3
Actually the code posted is creating the error "Invalid File Format" since the CodecsPath is pointing to the new installation path. The old path generated the "Invalid Width/Height" error.
#3
Posted
:
Thursday, June 8, 2006 6:02:03 AM(UTC)
Groups: Manager, Tech Support
Posts: 367
Was thanked: 1 time(s) in 1 post(s)
Art,
Does this happen with a certain file or group of files, or with any type of file? If it's a specific file or group, send me the file and tell me which (build) version of LEADTOOLS you are using.
If your build is older than 14.5.0.10, please download and apply the latest patches from our support site and try with them.
If you want to send files, you can either post them here or email them to
support@leadtools.com. If you post or email files, please put them in a ZIP file first.
Amin Dodin
Senior Support Engineer
LEAD Technologies, Inc.
#4
Posted
:
Friday, June 9, 2006 7:07:34 AM(UTC)
Groups: Registered
Posts: 3
I resolved problem. I uninstalled both versions (EVAL and latest) and reinstalled ensuring only current DLLs remained. Apparently, some old DLLs were getting in the mix. All is well now.
LEADTOOLS Support
Imaging
Imaging SDK Questions
Invalid Width/Height when making a thumbnail
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.