A PHP class that makes working with images and GD as simple as possible.
$calculateOffsetFromEdge
param to overlay()
methodMake private methods protected.
Changed access modifier from private to protected. See #203
Prevent a notice when no exif info is present.
bestFit
that causes small images to be stretchedLICENSE.md
readme.md
to README.md
for consistencyresize
to match updated functionalityresize()
getAspectRatio()
and fix internal calculationopacity()
filterbestFit
to allow upsamplingimageCopyMergeAlpha()
so it's a lot fasterfromString()
and toString()
(#163).Added support for URL wrappers in fromFile()
. You can now use any readable wrapper that your system supports to load images, including HTTP, HTTPS, FTP, SSH, and others.
duotone
method.getColorAt
method to get the RGBA value of a specific pixel.extractColors()
method (requires \League\ColorExtractor
, automatically installed for Composer users).sharpen()
method.normalizeColor
so you can pass CSS colors and hex strings with transparency. Example: #fff|.25
and white|.25
fill()
where transparent
would create a black image instead of a transparent one.normalizeColor()
where alpha would be 0-127 instead of 0-1.Added missing toDownload
method.