Skip to content

Releases: claviska/SimpleImage

Add $baseAlign option to text()

26 Oct 19:50
7343f97
Compare
Choose a tag to compare
Add $baselineAlign to text() method

* Adds $ borderOffset parameter to overlay ().
Calculates the offset for the image edges.

* Use $calcuateOffsetFromEdge in "overlay()".
Update doc

* Cleaner code for 'overlay()'

* Text() issues

* NewLine

* no message

* New $baselineAlign and $calcuateOffsetFromEdge

* Only comments

* Readme update

* Excluded the return of the 'boxtext' that was used for testing

Co-authored-by: Cory LaViska <[email protected]>

3.4.0: Add $calcuateOffsetFromEdge parameter to overlay method (#263)

19 Oct 18:23
d9234da
Compare
Choose a tag to compare
  • Added $calculateOffsetFromEdge param to overlay() method

3.3.4

26 Sep 01:28
Compare
Choose a tag to compare

Make private methods protected.

3.3.3

13 Sep 01:04
Compare
Choose a tag to compare

Changed access modifier from private to protected. See #203

3.3.2

18 Jul 21:59
Compare
Choose a tag to compare

Prevent a notice when no exif info is present.

3.3.1

26 Apr 13:35
Compare
Choose a tag to compare
  • Fixes a bug in bestFit that causes small images to be stretched
  • Added LICENSE.md
  • Renamed readme.md to README.md for consistency
  • Updated description for resize to match updated functionality

3.3.0

21 Feb 16:32
Compare
Choose a tag to compare
  • Added proportional resizing to resize()
  • Added getAspectRatio() and fix internal calculation
  • Added opacity() filter
  • Reworked bestFit to allow upsampling
  • Optimized imageCopyMergeAlpha() so it's a lot faster

3.2.1

18 Jan 19:36
Compare
Choose a tag to compare
  • Added fromString() and toString() (#163).
  • Added the ability to get text boundaries (#164).
  • Fixed a text positioning bug (#165).

3.1.1

17 Jan 17:13
Compare
Choose a tag to compare

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.

3.1.0

11 Jan 22:24
Compare
Choose a tag to compare
  • Added duotone method.
  • Added getColorAt method to get the RGBA value of a specific pixel.
  • Added extractColors() method (requires \League\ColorExtractor, automatically installed for Composer users).
  • Added sharpen() method.
  • Added alpha piping to normalizeColor so you can pass CSS colors and hex strings with transparency. Example: #fff|.25 and white|.25
  • Fixed a bug in fill() where transparent would create a black image instead of a transparent one.
  • Fixed a bug in normalizeColor() where alpha would be 0-127 instead of 0-1.
  • Made certain methods static (doesn't break backwards compatibility).