SPATIE

  • Products
  • Open Source
  • Courses
  • Web Development
VacanciesAboutBlogDocsGuidelinesMerch ↗ Log in

Docs Image Usage Retrieving properties

Other versions for crawler v3 v2 v1
    • Introduction
    • Postcardware
    • Installation and setup
    • Supported formats
    • Questions & issues
    • Changelog
    • About us
    • Upgrading

    Usage

    • Basic usage
    • Saving images
    • Retrieving properties
    • Colors

    Image manipulations

    • Overview
    • Resizing images
    • Optimizing images
    • Adjustments
    • Image canvas
    • Effects
    • Adding a watermark
    • Adding text

Retrieving properties

You can retrieve the width and height of an image:

Image::load('example.jpg')->getWidth() // returns 1600
Image::load('example.jpg')->getHeight() // returns 1052
Saving images
Colors
Help us improve this page
Testing Laravel

Learn how to write quality tests in Pest and PHPUnit in our video course

Help us improve this page
  • Products
  • Open Source
  • Courses
  • Web Development
VacanciesAboutBlogDocsGuidelinesMerch ↗ Log in

Kruikstraat 22, Box 12
2018 Antwerp, Belgium
info@spatie.be
+32 3 292 56 79
  • GitHub
  • Instagram
  • LinkedIn
  • Twitter
  • Bluesky
  • Mastodon
  • YouTube
  • Privacy
  • Disclaimer

+32 3 292 56 79

Click to call us

    Enter a search term to find results in the documentation.