PHP: Manage Images with GD
$30-40 USD
Paid on delivery
I have a PHP script that re-sizes images on demand using ImageMagick (Version 6.3.9 or newer).
I need it to be modified to support both ImageMagick and GD.
The webmaster should be able to choose if images are to be re-sized by ImageMagick or GD by changing a configuration setting.
If GD is selected then the images should be re-sized in exactly the same way but using GD instead of ImageMagick.
The crop-style, background color, image type and image quality must be managed.
Here are the four different types of re-sizing that are done:
-----------------------
# Smart Cropping
convert -size '267x107' 'xc: #FF1122' null: \( '[login to view URL]' -resize '267x107>' \) -gravity Center -layers Composite -format 'jpg' -unsharp 0x.5 -strip -quality '65' '[login to view URL]'
# Padded to Size
convert -size '267x107' 'xc: #FF1122' null: \( '[login to view URL]' -gravity 'Center' -resize '267x107>' -crop '267x107+0+0' +repage \) -gravity 'Center' -layers Composite -format 'jpg' -unsharp 0x.5 -strip -quality '65' 'padded/267x107/65/FF1122/Center/[login to view URL]'
# Liquid
convert '[login to view URL]' -resize '267x' -unsharp 0x.5 -strip -quality '65' '[login to view URL]'
convert '[login to view URL]' -resize 'x107' -unsharp 0x.5 -strip -quality '65' '[login to view URL]'
# Fit Inside
convert '[login to view URL]' -resize '267x107>' -unsharp 0x.5 -strip -quality '65' '[login to view URL]'
---------------------------------------------
Project ID: #2499642