Hi Stefan,

On 05/20/2009 12:42 AM Stefan Kilp [sk-software] wrote:

> i use GeometrieFilter to resize an image. After that i want to use the 
> imagemagick -strip 
> option to remove unnessesary information. 
> adding -strip to the scale function in imagemagick.php line 81
> 
>  $this->addFilterOption(
>             $this->getActiveReference(),
>             '-strip -resize',
>             $width.$dirMod.'x'.$height.$dirMod
> 
> it is axactly what i wat, but it is a bad way of doing it.
> 
> Whats the best way to do this programatically?

The correct way would be to define a new filter interface for this
operation and make only the ImageMagick driver implement it (since GD
does not support this, AFAIK).

If you only want this for your own needs, you can create a derived class
of ezcImageImagemagickHandler, which implements the interface and
provides the filter.

Regards,
Toby
-- 
Mit freundlichen Grüßen / Med vennlig hilsen / With kind regards

Tobias Schlitt (GPG: 0xC462BC14) eZ Components Developer

t...@ez.no | eZ Systems AS | ez.no
-- 
Components mailing list
Components@lists.ez.no
http://lists.ez.no/mailman/listinfo/components

Reply via email to