Convert: unable to extend cache

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
DTPManiac

Convert: unable to extend cache

Post by DTPManiac »

Hi everyone

I'm new with using ImageMagick. I'm currently working with the ImageMagick-6.4.1-Q16 Windows Version and I have a very strange error at the moment. Besides the error only occurs with that special font with is basicly a font with a logo and several other graphical items in it.

The command line:

Code: Select all

C:\>convert -background lightblue -fill blue -size 300 -font Duisburg-Logo -pointsize 1 -density 72 -units pixelsperinch -debug cache label:123 label_size.jpg
That's what I get back:

2008-06-18T09:28:02+02:00 0:03 2.734u 6.4.1 Cache convert[4064]: cache.c/ExtendCache/3439/Cache
extend 123[0] (D:/ImageMagick-6.4.1-Q16/tmp/magick-MEQKyq8t[3], disk, 9.375tb)
2008-06-18T09:28:02+02:00 0:03 2.734u 6.4.1 Cache convert[4064]: cache.c/DestroyCacheInfo/2191/Cache
destroy 123[0]
convert: unable to extend cache `123': No space left on device.
convert: missing an image filename `label_size.jpg'.

And that's what -list resource tells me

File Area Memory Map Disk
------------------------------------------------
1536 3.93478gb 2.95108gb 7.86955gb 16eb

With Arial or any other font everything works fine and all of my disk have min. 9GB of free disk space.

Anyone an idea? I already searched the forum and internet, but till I haven't got a solution for that problem.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Convert: unable to extend cache

Post by magick »

Something is causing ImageMagick to request 9.375 terabytes of temporary disk. What happens if you use a pointsize of 12 instead of 1? Check your debugging statements carefully and locate where ImageMagick is trying to open such a huge image file.
DTPManiac

Re: Convert: unable to extend cache

Post by DTPManiac »

it's possible to generate the image after copying the glyph from the initial font file to a new one. Maybe it's an error in the font itself, but I don't have an idea where it comes from. The tmp location is canged the ./tmp inside of the IM folder and during generation files are created there.
With the initital .ttf it's possible to generate one glyph in 1pt at 72dpi. After copying the gylph to a new font it's possible to generate it in whatever dpi and resolution I want without any error.
Post Reply