Stream large jpg file - VERY SLOW

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
splee99
Posts: 4
Joined: 2015-01-21T01:30:09-07:00
Authentication code: 6789

Stream large jpg file - VERY SLOW

Post by splee99 »

My system:
- Windows 7, 64-bit, 4GB RAM
- ImageMagicK 6.9.0-1 Q8 x64 2014-12-22

I performed this: stream -map i -storage-type char -extract 1352x27000+28000+0 c:\PQT\Test1.jpg c:\PQT\Test1.dat and it took more than 2 minutes. The JPG file is 70MB. While it is running, all other windows on my computer freeze..

Long time ago I managed to make it work with Windows XP in under 30s! I suspect this is due to some Windows 7 setting:

1. How should I manage the paging file size for my disk drives? What should the size be?
2. What should the registry DisablePagingExecutive be? 1 or 0?
3. Should I disable or enable "write caching on the device" for my disk drives?
4. Is there any other setting which I should change?

This is something strange. I managed to get it run fast in Windows XP. Now Windows 7 I cannot!!

Please help.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Stream large jpg file - VERY SLOW

Post by magick »

Perhaps the time is spent decoding the JPEG compressed image or writing the results to disk. You may have a huge profile in the JPEG image. You can add -define profile:skip=APP,ICC,IPTC to your command line to skip reading the profile. Make sure you have a modern version of ImageMagick.
splee99
Posts: 4
Joined: 2015-01-21T01:30:09-07:00
Authentication code: 6789

Re: Stream large jpg file - VERY SLOW

Post by splee99 »

Hi magick,
magick wrote:You can add -define profile:skip=APP,ICC,IPTC to your command line to skip reading the profile
But I didn't do that on the Windows XP, which processes the image much faster than the odd Windows 7

magick wrote:Make sure you have a modern version of ImageMagick
I am using the latest which is ImageMagick-6.9.0-4-Q8-x64-dll.exe

Has it got anything to do with virtual memory/pagefile setting in Windows?

Thank you
Post Reply