CLI Thumbnail generation
|

CLI Thumbnail generation

[et_pb_section admin_label=”Section” fullwidth=”on” specialty=”off”][et_pb_fullwidth_post_title admin_label=”Fullwidth Post Title” title=”on” meta=”on” author=”off” date=”on” categories=”on” comments=”off” featured_image=”on” featured_placement=”background” parallax_effect=”off” parallax_method=”on” text_orientation=”center” text_color=”dark” text_background=”on” text_bg_color=”rgba(255,255,255,0.9)” module_bg_color=”rgba(255,255,255,0)” title_all_caps=”off” use_border_color=”off” border_color=”#ffffff” border_style=”solid”] [/et_pb_fullwidth_post_title][/et_pb_section][et_pb_section admin_label=”section”][et_pb_row admin_label=”row”][et_pb_column type=”4_4″][et_pb_text admin_label=”Text” background_layout=”light” text_orientation=”left” use_border_color=”off” border_color=”#ffffff” border_style=”solid”] Just found this snippet in one of my local snippet files. i think I got this from some blog…….

PHP Image Magick Drop Shadow

PHP Image Magick Drop Shadow

Want to add a simple drop shadow on any image? well here’s how to do it on the fly via PHP and Image Magick. < ?php $img = new Imagick(‘images/image.jpg’); $img->setImageFormat(‘png’); $shadowed = $img->clone(); $drop_shadow = $img->clone(); $drop_shadow->setImageBackgroundColor( new ImagickPixel( ‘black’ ) ); $drop_shadow->shadowImage( 80, 3, 5, 5 ); $drop_shadow->compositeImage( $img, Imagick::COMPOSITE_OVER, 0, 0 );…