Contributions 1 min read

# Fix for image assets that don’t have set dimensions

Tomislav, our Pimcore developer, has done it again and his new pull request has been accepted. Image assets have been causing some lesser issues, and now the issue is completely fixed. Find

Last updated on 29 August, 2025

## Key takeaways

1. Leftover PHP 7 code without null checks caused errors in Pimcore's admin GUI when users opened asset formats that are not supported for preview.
2. The fix adds a condition that checks whether a value is set before returning it.
3. After the accepted pull request, unsupported assets open in the Pimcore admin without errors, and the contributor praises Pimcore's openness to community pull requests.

## **What was the issue?**

The remaining code from PHP 7 was causing that unsupported asset formats were causing errors when trying to open them in admin GUI. It is because in PHP 7 there was no need for null check variables.

## **How did you solve it?**

I needed to add one if condition that checks if the value is set and if it is, return that value.

## **Why is this fix important?**

There is now no error in admin GUI when trying to open assets that are not supported for preview.

## **What do you think about the current direction of the development of the entire Pimcore platform?**

I love how open they are. They let people help in the development of Pimcore. No matter how impactful the bug or the new feature is, they talk with you and let you finish what you started. I sometimes felt like they could fix an issue in no time and they would rather talk with you and help you understand what should be done.

It’s great not only because that encourages people to continue to provide pull requests but also because they help you grow as a developer.

And if you want to check out this particular [pull request](https://github.com/pimcore/pimcore/pull/10711), just follow the link!

## Related

[Contributions **Fix for no scroll in grid/list view of assets folder** We've contributed with yet another pull request! Our developers are continuously working on making Pimcore a better platform for both users and developers - and it's working! Check… 1 min read](https://factory.dev/pimcore-knowledge-base/contributions/no-scroll-fix) [Contributions **Object brick – Allowed classes sorting and filtering** Another day - another pull request! Our Pimcore developer, Dino, has made sure that Pimcore object bricks gain a new upgrade. Check it out! 1 min read](https://factory.dev/pimcore-knowledge-base/contributions/object-brick-sorting-filtering) [Contributions **Fix to update object\_url\_slug to correct character set and collate** Check out our latest contribution the the Pimcore platform! Step by step, together we're building the ideal platform for the entire Pimcore community! 1 min read](https://factory.dev/pimcore-knowledge-base/contributions/object-url-slug-fix)

---

Source: https://factory.dev/pimcore-knowledge-base/contributions/image-assets-fix
