Bilder werden beim Upload verkleinert?

  • Posts: 5
  • Thank you received: 0
10 years 8 months ago #184650

-- url of the page with the problem -- : www.webdesign-bergischland.de/de/flyershop.html
-- HikaShop version -- : 2.3.5
-- Joomla version -- : 3.3.6
-- Browser(s) name and version -- : Mozilla Firefox

Ich habe in meinem Shop bisher zwei Artikel eingestellt. (siehe url)
Beim ersten werden die Bilder auf der Übersichts- sowie auf der Produktseite korrekt skaliert dargestellt.
Beim zweiten Artikel habe ich ein Bild mit exakt den selben Formaten verwendet, wie bei dem ersten. Doch nach dem Upload erscheint das Bild extrem verkleinert! Ich finde einfach keine Lösung! In der Shop Konfiguration habe ich für Produktbilder die Größe 600x600 eingestellt, für das Vorschaubild 200x200.
Wenn ich nachträglich diese Einstellung verändere, passt sich das Bild bei dem ersten Artikel auch an, bei dem zweiten verändert sich gar nichts!?

Please Log in or Create an account to join the conversation.

  • Posts: 5
  • Thank you received: 0
10 years 8 months ago #184655

Hinzu kommt jetzt noch, dass ich keine Bilder aus Artikeln mehr löschen kann.
Es erscheint folgende Fehlermeldung:


1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '))' at line 1 SQL=SELECT file_path FROM joomlawbl_hikashop_file WHERE file_path IN ('flyer_motiv_2_1649665799.png') AND (file_ref_id != 29 OR file_id IN ())

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
10 years 8 months ago #184658

Hello,
1. And can you try to remove your product image and then upload it again ?

2. Also regarding the error that you had when you tried to delete your product image you'll have the edit the "administrator\components\com_hikashop\classes\product.php" file and change these lines :

$this->database->setQuery('SELECT file_path FROM '.hikashop_table('file').' WHERE file_path IN ('.implode(',',$oldFiles).') AND (file_ref_id != '.$status.' OR file_id IN ('.implode(',',$element->$type).'))');
By :
$filter = '';
if(!empty($element->$type) && count($element->$type))
	$filter = ' OR file_id IN ('.implode(',',$element->$type).')';
$query = 'SELECT file_path FROM '.hikashop_table('file').' WHERE file_path IN ('.implode(',',$oldFiles).') AND (file_ref_id != '.$status.$filter.')';
$this->database->setQuery($query);

Last edit: 10 years 8 months ago by Mohamed Thelji.
The following user(s) said Thank You: WBL

Please Log in or Create an account to join the conversation.

  • Posts: 5
  • Thank you received: 0
10 years 8 months ago #184744

1. I have more than once deleted the product images and uploaded them again. I have even deleted the whole product and created it new again. When I check my media folder in joomla where the files are uploaded to I also see the images only in 100x100 size.
What I don't understand is why it worked for the first product. I have even tried different pictures in different sizes already but the outcome is always a product image in 100x100 only.

2. The issue with the error message was solved by changing the product.php

Please Log in or Create an account to join the conversation.

  • Posts: 2143
  • Thank you received: 747
10 years 8 months ago #184746

Hi,

As shown in the popup when clicking on the images in the product pages, the original image "flyer_motiv_2.png" in your upload folder is only 50x100px small, while "flyer_motiv_1.png" is 298x596px.

A thumbnail won't be bigger than the original image as uploaded. I understand you had trouble with deleting images earlier and tried uploading new ones. But for some reason the original image - seemingly what you uploaded for the second product - is much too small, and so it'll stay that way.
Try uploading/adding a larger image instead, it should work.


Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )

Please Log in or Create an account to join the conversation.

  • Posts: 5
  • Thank you received: 0
10 years 8 months ago #184747

But that's what I did! The image I uploaded is exactly the size of 298x596 px
I even tried to upload the same picture for product 1 again what is shown correctly already. But now it get's uploaded in 100 x100 px only!?

Please Log in or Create an account to join the conversation.

  • Posts: 2143
  • Thank you received: 747
10 years 8 months ago #184748

Well, the settings for images in the backend must be screwed up then. What do you have there for "Image width" and "Image height"? I wouldn't be surprised if it they were set to 100px each. As it says in the documentation:

Image width and Image height : You can specify a maximum width and a maximum height for images attached to products. If the images appears to be bigger, they will be resized automatically during the upload process. If you do not want to resize images, leave these fields blank. These options only apply to the "zoomed" image of products on the product page and to the current category image on category/product listings. Note that if you change these values, the images you already uploaded in your products/categories won't be resized as this process is done at the moment you upload them.


Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )
The following user(s) said Thank You: WBL

Please Log in or Create an account to join the conversation.

  • Posts: 5
  • Thank you received: 0
10 years 8 months ago #184753

Oh men Thanks!! In my configuration it was set to 100% / 100%
I wasn't aware that this setting is for the maximum size! I removed it and it works now! THANKS!!!!

Please Log in or Create an account to join the conversation.

  • Posts: 2143
  • Thank you received: 747
10 years 8 months ago #184756

Good to hear you've found the culprit. Again and again, "RTFM" helps. ;)


Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )

Please Log in or Create an account to join the conversation.

Time to create page: 0.063 seconds
Powered by Kunena Forum