Welcome Guest, Not a member yet? Register   Sign In
Support for stripping exif in ImageMagickHandler
#1

In CodeIgniter 3 I patched image_lib to strip exif when resizing using imagemagick.
Here:
https://github.com/bcit-ci/CodeIgniter/b...b.php#L872

PHP Code:
public function image_process_imagemagick($action 'resize')
{
...
  // Execute the command
  $cmd $this->library_path.' -quality '.$this->quality;
  $cmd .= " -strip "; <-- added this
... 
Now I need this when migrating to CodeIgniter 4. Could this be added as an optional feature in ImageMagickHandler?

Something along the lines of:

PHP Code:
$this->image->withFile($fullImagePath)
            ->resize($imageWidth$imageHeighttrue)
            ->stripExif()
            ->save($scaledImagePath70); 
Reply




Theme © iAndrew 2016 - Forum software by © MyBB