Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Image preview shows default pimcore placeholder because "aspectratio" parameter is ignored #6057
Using this twig code an image preview should be visible in backend:
Only pimcore's placeholder is showing.
Steps to reproduce
Use the top code in a document template and upload an image to the field in editmode. After attaching the image to the field, a broken preview is being shown. Addind a height parameter to the image fixes this behaviour but unsets the possibility to scale an image by width.
@dvesh3 can you try in dev mode with debugging on? I always see the image filetype-not-supported.svg of the AdminBundle. Once you change line 357 in vendor/pimcore/pimcore/bundles/AdminBundle/Resources/public/js/pimcore/document/tags/image.js to something like this