![]() |
|
Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Resizing large TIF filesby mwah (Hermit) |
on Nov 20, 2007 at 22:54 UTC ( [id://652016]=note: print w/replies, xml ) | Need Help?? |
tiff 'convert' ... ImageMagick ... 1.5 seconds ... to a 1024x768 PNG. The originals are ... 40KB ... The PNG is truecolour and closer to 300KB ... I'm not sure to have understood what you did and why it didn't work. These times and sizes are not what I got here. For testing purpose, I screen-copied this PerlMonk web page with your question, pasted it into Photoshop, resized it to 2200x1600, converted it to bitmap and blurred it until it's monochrome tiff (lzw) had about 48KB. This file was named 'originalmono.tiff' Now I started cygwin and issued a $> for i in `seq -w 1 100`; do cp originalmono.tiff originalmono${i}.tiff; donewhich gave me 100 of these 48K images (originalmono001.tiff etc). Next, a snippet using Imager (0.61, which is what I use most of the time) was written:
In 'preview' scaling mode, the 100 png's are out after 21 sec (.png size: 21K), in 'normal' scaling mode (which is: "quality mode"), the 100 files are done after 98sec (.png size 48K). If you change the output format to 'gif', the 100 gifs ('normal mode') take about 100 sec, each .gif-File is 33K. BTW: This is an Athlon64/3200 under Win-XP. I re-checked the run times under Linux/vmware, they differ only by a second or two. Regards mwa
In Section
Seekers of Perl Wisdom
|
|