Re: Strange images

"Schliemann, Kai via opencms-dev" <[email protected]> Mon, 18 Nov 2024 17:23:50 +0000
Newsgroups gmane.comp.cms.opencms.devel
Message-ID <AS8PR08MB10100FC3E7563C9E0519E2EAFFC272@AS8PR08MB10100.eurprd08.prod.outlook.com>
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 <[email protected]> Im Auftrag von Atle Enersen via opencms-dev
Gesendet: Donnerstag, 14. November 2024 20:40
An: [email protected]
Cc: Atle Enersen <[email protected]>
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

_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
https://lists.opencms.org/mailman/listinfo/opencms-dev