Skip to content

Instantly share code, notes, and snippets.

@akroii
Created August 19, 2021 14:12
Show Gist options
  • Save akroii/44569067f04b97ef94c7b3d5ed0c47f1 to your computer and use it in GitHub Desktop.
Save akroii/44569067f04b97ef94c7b3d5ed0c47f1 to your computer and use it in GitHub Desktop.
Get image dimensions from svg
$image = FilesModel::findByUuid($singleSRC); und $imagesize = getimagesize($image->path);
@akroii
Copy link
Author

akroii commented Aug 19, 2021

$dimensions = $imageFactory->create($projectDir . '/' . $image->path)->getDimensions();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment