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 : Wednesday, July 12, 2006 10:21:12 PM(UTC)

jschoi  
jschoi

Groups: Registered
Posts: 1


Question!!(Sorry, I can't use english well )

- make thumbnail (source is 500MB tiff file, or raw file)

- use Raster Imaging Pro .Net ver 14.5

- don't loading all image, using minimum memory possibly (ex. envi image viewer)

- fast possiblly

 

How can I do?

 

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 : Friday, July 14, 2006 11:21:11 AM(UTC)

GregR  
GregR

Groups: Registered, Tech Support, Administrators
Posts: 764


The following VB.NET code sample loads a large image file (105MB in my test) and saves out an 8KB 50x50 thumbnail.  This took about 8 seconds to run on a n AMD 1500 GHz with 512 RAM.  Of course your 500MB file will take longer, but if it is has multiple pages and you only want to make a thumbnail of the first page, it will not take as long.

        'load
        img = codecs.Load("D:\test images\really big.tif", 0, CodecsLoadByteOrder.BgrOrGray, 1, 1)

        'change image size
        img2 = New RasterImage(RasterMemoryFlags.Managed, 50, 50, img.BitsPerPixel, img.Order, img.ViewPerspective, img.Palette, Nothing)
        Dim r As New ResizeCommand(img2, RasterSizeFlags.Normal)
        r.Run(img)

        'save
        codecs.Save(img2, "d:\junk folder\thumb.tif", RasterImageFormat.Tif, 24)
 
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.059 seconds.