Page 4 of 4

Re: [MOD] Auto-Include width/height tags for images

Posted: Wed Sep 16, 2015 10:08 am
by IP_CAM
I have put together a few sample files, a while ago:
http://www.opencart.com/index.php?route ... n_id=23506

Further: In order to have ALL images 'DONE', it takes a little work, to find, troughout the ALL_FILENAMES.TPL Source-Files, all image Links, and manually hardcode the width+height, where real VALUES are missing on Browser Page Source. In Addition, in some VqMod's may be some image Links as well, they have to be renamed too, if one wants to make it complete.

Ernie
bigmax.ch/shop/

Re: [MOD] Auto-Include width/height tags for images

Posted: Sun Mar 06, 2016 8:31 am
by saliverdim
ı Looking oc mod or vqmod oc 2.0.3.1

1-Specify image dimensions opencart
2-Serve scaled images opencart

can you help me ?

Re: [MOD] Auto-Include width/height tags for images

Posted: Tue Sep 06, 2016 10:50 pm
by esponi
Have you found it?

Re: [MOD] Auto-Include width/height tags for images

Posted: Sat Oct 29, 2016 7:55 am
by IP_CAM
saliverdim wrote:ı Looking oc mod or vqmod oc 2.0.3.1
1-Specify image dimensions opencart
2-Serve scaled images opencart
can you help me ?
As I recall, such Mod exists already for some OC-2.
But I cannot longer create&test such Mod's, because I have no working V-2 Versions online.
Ernie

Re: [MOD] Auto-Include width/height tags for images

Posted: Mon Oct 02, 2017 6:14 pm
by guidone
Hi,

for OC 2 i'm using this vQmod, is any problem with this?

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<modification>
	<id>Images width and height tags</id>
	<version>1.0.0</version>
	<vqmver required="true">2.4.0</vqmver>
	<author>me</author>
	<file name="catalog/model/tool/image.php">
		<operation>
			<search position="replace"><![CDATA[$image_new;]]></search>
			<add><![CDATA[$image_new . '" width="' . $width . '" height="' . $height;]]></add>
		</operation>
	</file>
</modification>

Re: [MOD] Auto-Include width/height tags for images

Posted: Tue Oct 03, 2017 4:01 am
by IP_CAM
I explained it here, and added a VqMod as well as an OcMod to it:
viewtopic.php?f=190&t=185410&p=686890#p686890
Good Luck! ;)
Ernie

Re: [MOD] Auto-Include width/height tags for images

Posted: Mon Oct 09, 2017 12:57 pm
by tonkp
It works! Thank You



sbobet