Needs review
Project:
ImageAPI
Version:
6.x-1.x-dev
Component:
ImageAPI Imagick
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 Jun 2011 at 23:29 UTC
Updated:
16 Jun 2011 at 02:54 UTC
Jump to comment: Most recent file
Comments
Comment #1
mikeytown2 commentedEscaping the
-commanddoesn't work as it adds in'around the command then. De-saturate does work with the example if your wondering.I've also attached a bad jpg file as an example of what can happen if these extra parameters are not passed along. Notice the file size in comparison to the dimensions; try viewing the file in IE8.
Comment #2
mikeytown2 commentedusing escapeshellcmd()
Comment #3
drewish commentedSo the description should probably make it clear that each option needs to be on its own line... assuming it really makes sense to force them onto their own lines. It might also be worth making it clear that these options will be passed to *every* usage of ImageMagick.
Comment #4
mikeytown2 commented[tangent]
If we decide to support IMagick Having one command per line might allow us to more easily convert the settings over.
http://php.net/imagick-setcolorspace
http://php.net/imagick-setimagetype
http://php.net/imagick-stripimage
IMagick would probably allow for more complex transformations like Smart Sharpening. My take on this: http://www.autoitscript.com/forum/topic/85891-imagemagick-batch-jpg-proc...
[/tangent]
Here is the updated patch that better explains what is going on in the description. BTW I'm perfectly fine with using a textbox and putting this all on one line.