Replies: 2 comments 1 reply
-
Beta Was this translation helpful? Give feedback.
0 replies
-
here is how I solved this using the spatie/image package (which is a dependency). width and height are both saved to the DB as custom properties.
then you can access them anywhere like below: $media->getCustomProperty('width');
$media->getCustomProperty('height'); |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am able to save and retrieve (path, url) of the images but could not figure out how to get the image original height/width while retrieving the image. Db does not seem to save the dimensions of the image. Please help.
Beta Was this translation helpful? Give feedback.
All reactions