SimpleImage Versions Save

A PHP class that makes working with images and GD as simple as possible.

3.4.0

3 years ago
  • Added $calculateOffsetFromEdge param to overlay() method

3.3.4

4 years ago

Make private methods protected.

3.3.3

6 years ago

Changed access modifier from private to protected. See #203

3.3.2

6 years ago

Prevent a notice when no exif info is present.

3.3.1

7 years ago
  • 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

7 years ago
  • 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

7 years ago
  • Added fromString() and toString() (#163).
  • Added the ability to get text boundaries (#164).
  • Fixed a text positioning bug (#165).

3.1.1

7 years ago

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

7 years ago
  • 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).

3.0.1

7 years ago

Added missing toDownload method.