Code: Select all
$S3_file_name = "https://s3.amazonaws.com/bucket/filename.jpg";
$handle = fopen($S3_file_name, 'rb');
$img = new Imagick();
$img->readImageFile($handle);
$img->thumbnailImage( 100, null );
//$img->roundCorners( 5, 5 ); // Not working yet, I may have something installed wrong
//$shadow->setImageBackgroundColor( new ImagickPixel( 'black' ) ); // Not working yet, I may have something installed wrong
//$shadow->shadowImage( 80, 3, 5, 5 ); // Not working yet, I may have something installed wrong
//$shadow->compositeImage( $img, Imagick::COMPOSITE_OVER, 0, 0 ); // Not working yet, I may have something installed wrong
$img->writeImage('temp_thumbnails/thumbnail.jpg";
Any tips would be greatly appreciated.
Thank you,
Silver Tiger