Search found 16 matches

by jack-mann
2014-03-29T03:22:52-07:00
Forum: Users
Topic: On cache limits are global...
Replies: 2
Views: 3538

Re: On cache limits are global...

well So each convert gets a pixel cache of 256MB. Thank you for making it clear.
by jack-mann
2014-03-27T22:26:15-07:00
Forum: Users
Topic: On cache limits are global...
Replies: 2
Views: 3538

On cache limits are global...

In http://www.imagemagick.org/script/architecture.php Note, the cache limits are global, meaning if you create several images, the combined resource requirements are compared to the limit to determine the pixel cache storage disposition Just want to double-check: given following configuration ...
by jack-mann
2014-03-23T09:37:34-07:00
Forum: Users
Topic: Can I turn the result of crop into a sequence?
Replies: 2
Views: 2625

Re: Can I turn the result of crop into a sequence?

yep your right I did as you said and got the code to work.
by jack-mann
2014-03-23T08:19:11-07:00
Forum: Users
Topic: Can I turn the result of crop into a sequence?
Replies: 2
Views: 2625

Can I turn the result of crop into a sequence?

convert img.png -crop 1000x1000 -set "filename:t" "%[fx:page.y/256]" +repage +adjoin cropped_%[filename:t].png I would like to do some work after the first crop maybe another crop so I would like use something like convert img.png -crop 1000x1000 -set "filename:t" "%[fx:page.y/256]" +repage +adjoin ...
by jack-mann
2014-03-22T02:10:47-07:00
Forum: Users
Topic: What's the canonical way to get the RAM size of a PNG
Replies: 3
Views: 2799

What's the canonical way to get the RAM size of a PNG

If I do a

Code: Select all

convert img.png    out.bmp
I get for a 20500x8000 img.png a 500M out.bmp

So can I conclude that when imagmagick reads the img.png in it uses about 500M RAM?
by jack-mann
2014-03-16T22:43:34-07:00
Forum: Users
Topic: Referring to the filename with %t makes my code slow?
Replies: 5
Views: 3822

Re: Referring to the filename with %t makes my code slow?

I would also assume that the second cmd is first putting all input images in memory.
there is probably no way to hint the first command to behave memory-wise like the second for loop command?
Since of a stream pipeline?
by jack-mann
2014-03-16T14:11:49-07:00
Forum: Users
Topic: Referring to the filename with %t makes my code slow?
Replies: 5
Views: 3822

Re: Referring to the filename with %t makes my code slow?

ping does not help.. also all cropped images are all black now....
by jack-mann
2014-03-16T13:36:02-07:00
Forum: Users
Topic: Referring to the filename with %t makes my code slow?
Replies: 5
Views: 3822

Referring to the filename with %t makes my code slow?

I found out that this code is about 60% slower: convert image_*.png -background white -gravity center -extent 20400x -crop 400x400 -set "filename:data" "%t_%[fx:page.x/400]" +repage +adjoin "cropped_%[filename:data].png" than using a loop (pseudo code): for (y=0;y < 34;y++) { convert image_{y}.png ...
by jack-mann
2014-03-15T13:25:50-07:00
Forum: Users
Topic: Is it possible to write directly to a db?
Replies: 8
Views: 4057

Re: Is it possible to write directly to a db?

I am afraid if I ask such a question on the dev forum the guys will make fun of me ....
I quess it is just not possible
by jack-mann
2014-03-15T11:38:48-07:00
Forum: Users
Topic: what's going on behind the scenes when applying the crop?
Replies: 8
Views: 4767

Re: what's going on behind the scenes when applying the crop

the option -quality 1 got me a 20% performance push! I am now with the cutting into stripes and using -quality 1 down to 38 secs...
by jack-mann
2014-03-15T10:58:20-07:00
Forum: Users
Topic: Is it possible to write directly to a db?
Replies: 8
Views: 4057

Re: Is it possible to write directly to a db?

that's what I am actually doing. I am calling convert from php. But since this is a server app with lots of io load it would be nice if I could save my script from generating those tmp files
by jack-mann
2014-03-15T08:49:39-07:00
Forum: Users
Topic: what's going on behind the scenes when applying the crop?
Replies: 8
Views: 4767

Re: what's going on behind the scenes when applying the crop

I am achieving quite good results now if I preprocess the crop and cut the large image before in stripes. Because the stripes have for example only a height of 256 px the crop can use much less memory. Thanks glennrp for pointing out how important memory is for cropping. I tried to chain the ...
by jack-mann
2014-03-15T08:42:51-07:00
Forum: Users
Topic: Is it possible to write directly to a db?
Replies: 8
Views: 4057

Re: Is it possible to write directly to a db?

thanks In my use case it does make sense since I am using SQLite and am transferring the db over the net...
by jack-mann
2014-03-15T06:34:27-07:00
Forum: Users
Topic: what's going on behind the scenes when applying the crop?
Replies: 8
Views: 4767

Re: what's going on behind the scenes when applying the crop

on convert -list I File Area Memory Map Disk Thread Throttle Time -------------------------------------------------------------------------------- 192 4.295GB 2GiB 4GiB unlimited 1 0 unlimited I tried a limit of 4GiB but got no improvement (even 5 secs worse) I read the link http://www.imagemagick ...
by jack-mann
2014-03-15T01:58:33-07:00
Forum: Users
Topic: Is it possible to write directly to a db?
Replies: 8
Views: 4057

Is it possible to write directly to a db?

Code: Select all

convert large.png -crop 256x256 -set "filename:t" "%[fx:page.x/256]_%[fx:page.y/256]" +repage +adjoin PNG8:'.$workDir.'"/img_%[filename:t].png"
Can I somehow skip the writing to the filesytem and plug in to imagemagick and write directly to a database?