Search found 5 matches

by porton
2011-12-08T08:49:38-07:00
Forum: Users
Topic: Atomic operations
Replies: 1
Views: 3725

Atomic operations

Can ImageMagick be used in such a way that it will overwrite files atomically? That is I don't want a file be half-written at any stage of creating a new version of the file.

I use PerlMagick, but think that this my question is common for all ImageMagick interfaces.
by porton
2009-05-14T07:30:44-07:00
Forum: Developers
Topic: Reading image with specified MIME type
Replies: 1
Views: 4862

Reading image with specified MIME type

I suggest to add the capability to read image with specified MIME type (now it works guessing the image type from filename).
by porton
2008-10-05T07:14:16-07:00
Forum: PerlMagick
Topic: Resizing with crop
Replies: 4
Views: 15300

Re: Resizing with crop

Use Resize() to resize the image. By default it maintains the aspect ratio. Use Extent() with a gravity of center to fill in any empty space. Something like Resize('400x400') and Extent(geometry=>'400x400', background=>'white', gravity=>'center'). Oh, well, now I noticed that Resize() maintains the...
by porton
2008-10-04T13:31:10-07:00
Forum: PerlMagick
Topic: Resizing with crop
Replies: 4
Views: 15300

Re: Resizing with crop

Use Resize() to resize the image. By default it maintains the aspect ratio. Use Extent() with a gravity of center to fill in any empty space. Something like Resize('400x400') and Extent(geometry=>'400x400', background=>'white', gravity=>'center'). I don't understand how Resize() maintains the aspec...
by porton
2008-10-04T07:47:15-07:00
Forum: PerlMagick
Topic: Resizing with crop
Replies: 4
Views: 15300

Resizing with crop

I have an image and a given size. Image must be changed to fit exactly into given size. It must be cropped (with -gravity Center) if either width or height does not fit into the given size. Resizing must be proportional. How?