[opencms-dev] Strange images

Schliemann, Kai K.Schliemann at comundus.com
Mon Nov 18 18:23:50 CET 2024


Hi Atle,

this is the static export feature of OpenCms and therefore a normal behaviour, which should work. This is done, because you can use one uploaded image in OpenCms many times. Meaning in different sizes and aspect ratios. This depends on the cms:img-tag you chose in your templates.

By the way: You used 600px in your width attribute, which is syntactically wrong. Correct is "600", which always means pixels.

Best regards
Kai

Von: opencms-dev <opencms-dev-bounces at opencms.org> Im Auftrag von Atle Enersen via opencms-dev
Gesendet: Donnerstag, 14. November 2024 20:40
An: opencms-dev at opencms.org
Cc: Atle Enersen <atle.enersen at gmail.com>
Betreff: [opencms-dev] Strange images

Hello.

As a default OpenCMS prints images like this at our site:

<img width="600px" src="/oc/export/sites/enersen/.galleries/Persons/Fredrik-Andersson.jpg_1234780953.jpg<http://web.enersen.no/oc/export/sites/enersen/.galleries/Persons/Fredrik-Andersson.jpg_1234780953.jpg>"/>

It does not work. If I modify it manually to

<img width="600px" src="/oc/export/sites/enersen/.galleries/Persons/Fredrik-Andersson.jpg<http://web.enersen.no/oc/export/sites/enersen/.galleries/Persons/Fredrik-Andersson.jpg_1234780953.jpg>"/>

and opens the src in a browser window it works. Anyone have any clue why OpenCMS adds these to the end of the src?

Alt godt, hilsen Atle Enersen.
--
Telefon: +47 48 06 31 71

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20241118/93548a56/attachment.htm>


More information about the opencms-dev mailing list