Image in emails are cropped to a square.

  • Posts: 585
  • Thank you received: 23
  • Hikaserial Subscription Hikashop Multisite
2 years 19 hours ago #346788

-- HikaShop version -- : 4.6.2

Hi support,

I have a question:
Image in emails are cropped to a square. So the side of the image is now falling off.
Is there any way to avoid this?

In the screenshot you see lef and right letters are gone. Because that's where it normally says start & finish



Hope you can give me a hint.

Kind regards,
Lumiga


Kind regards,
Lumiga
Attachments:

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

  • Posts: 4747
  • Thank you received: 644
  • MODERATOR
2 years 14 hours ago #346790

Hello,
In order to be able to understand the causes of this problem we are going to need see it by ourseleves.
Then, can you provide these elements :
- An Url link to your backend administrator access
- Backend user references (with maximum ACL)

Awaiting your returns to progress on your subject.
Regards

Last edit: 2 years 19 hours ago by Philip.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
1 year 11 months ago #346857

Hi,

You need to edit the emails in the menu System>Emails and in the "preload" section at the bottom, you need to change the line:

$img = $imageHelper->getThumbnail($item->images[0]->file_path, array(50, 50), array('forcesize' => true, 'scale' => 'outside'));
to:
$img = $imageHelper->getThumbnail($item->images[0]->file_path, array(50, 50), array('forcesize' => true, 'scale' => 'inside'));

The following user(s) said Thank You: Lumiga

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

  • Posts: 585
  • Thank you received: 23
  • Hikaserial Subscription Hikashop Multisite
1 year 11 months ago #347680

Hi Nicolas,

Thanks!

Is this something that you will change in the core for everyone in the future?
Or is this something I have to change everytime after an update?

Kind regards,
Lumiga


Kind regards,
Lumiga

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
1 year 11 months ago #347682

Hi,

Neither. We don't plan on adding that to the core. And you don't need to do it after an update as the changes you make in System>Emails are stored as overrides, like view overrides and thus you don't loose your changes when you update HikaShop.

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

Time to create page: 0.066 seconds
Powered by Kunena Forum