Images

23.07.2014 16:21
#1
svenschedlbauer
Joomshopping forum user no avatar
Name: Sven
13.03.2014
Posts: 32
Quote
Images

Hello,
we have problems with the image size in the product overview at our website.
When we create an new article, the image size is smaller than the other one. How can it be happen?
See following link: http://www.stabilus-safety.de/sicherheitsschuhe/s2
article 3902, 8210 and 8211 for example are new...

best regards
Sven Schedlbauer

 
23.07.2014 16:48
#2
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25929
Quote
Aw: Images

See configuration / image

 
23.07.2014 17:04
#3
svenschedlbauer
Joomshopping forum user no avatar
Name: Sven
13.03.2014
Posts: 32
Quote
Aw: Images

We have following configuration in each article, but the size from new articles is not the same as from the old articles.
Aw: Images

 
23.07.2014 17:05
#4
svenschedlbauer
Joomshopping forum user no avatar
Name: Sven
13.03.2014
Posts: 32
Quote
Aw: Images

This is the current configuration....
Aw: Images

 
23.07.2014 18:05
#5
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25929
Quote
Aw: Images

Current width 50
Set 100

 
24.07.2014 07:25
#6
svenschedlbauer
Joomshopping forum user no avatar
Name: Sven
13.03.2014
Posts: 32
Quote
Aw: Images

We switched to 100 but nothing changed on our website.
have a look at http://www.stabilus-safety.de/sicherheitsschuhe/s2 for example
Aw: Images

 
24.07.2014 08:05
#7
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25929
Quote
Aw: Images

delete foto and upload new foto

 
24.07.2014 09:28
#8
svenschedlbauer
Joomshopping forum user no avatar
Name: Sven
13.03.2014
Posts: 32
Quote
Aw: Images

Thanks, now it works :)

 
02.09.2014 20:36
#9
OlegM
Joomshopping forum user no avatar
Name: LoMaker
17.02.2011
Posts: 17
Quote
Aw: Images

Сейчас в настройках изображений:
Ширина оригинального изображения - 0
Высота оригинального изображения - 600

При загрузке изображений с высотой меньше 600px оно увеличивается до 600px.

Как сделать, чтобы изменялся размер только у тех изображений, высота которых больше заданной в настройках?


Joomla: 3.3.3
JoomShopping: 4.6.1
Website Url: http://mosgenerator.ru/test09/benzinovye-generatory/benzinovyj-generator-tss-sgg-2600-l.html
 
02.09.2014 20:53
#10
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25929
Quote
Aw: Images

There is no simple solution.

 
03.09.2014 13:53
#11
OlegM
Joomshopping forum user no avatar
Name: LoMaker
17.02.2011
Posts: 17
Quote
Aw: Images

В каком файле находится функция изменения размера?

 
03.09.2014 13:54
#12
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25929
Quote
Aw: Images

components\com_jshopping\lib\image.lib.php

 
03.09.2014 21:23
#13
OlegM
Joomshopping forum user no avatar
Name: LoMaker
17.02.2011
Posts: 17
Quote
Aw: Images

Simple solution:
administrator\components\com_jshopping\models\products.php
if ($jshopConfig->image_product_original_width || $jshopConfig->image_product_original_height) {
+ $imagedata = @getimagesize($path_full);
+ if ($imagedata[1] > $jshopConfig->image_product_original_height) {
if (!ImageLib::resizeImageMagic($path_full, $jshopConfig->image_product_original_width, $jshopConfig->image_product_original_height, $jshopConfig->image_cut, $jshopConfig->image_fill, $path_full, $jshopConfig->image_quality, $jshopConfig->image_fill_color)) {
JError::raiseWarning("", _JSHOP_ERROR_CREATE_THUMBAIL);
saveToLog("error.log", "SaveProduct - Error create thumbail");
$error = 1;
}
+ }
}


Thanks


Letzte Änderung: 03.09.2014 21:24
 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.