Skip to main content

Image engine possibilities/issues?

More
11 years 11 months ago #174919 by shpuser
I have some issues about image engine:

1. Which image engine uses Hikashop?

2. Sometimes happens that the object in generated image is to small and there is a big area with white background, what can be here the problem?

3.
If i set in code a image size, for example:
Code:
$img = $this->image->getThumbnail(@$this->row->file_path, array('width' => 430, 'height' => $this->image->main_thumbnail_y), $image_options);
What have i to put on height to get height automatic generated (instead of: $this->image->main_thumbnail_y........?)?

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

More
11 years 11 months ago #174961 by Jerome
Hi,

1. The HikaShop Image Helper is using PHP GD for the image processing.

2. The option "force size" is responsible for that. It force the final size of the image so it can add a background to the JPEG images.
But in the parameters of the function "getThumbnail" you can provide the "background" option to change that.
The options are store in the array variable $image_options.

3. I am sorry but I don't understand that question.
You can put the values you want for the width and the height, it's up to you.

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

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

More
11 years 11 months ago #175029 by shpuser
3. If i want to generate a image, i have to put image width and height, if i set width: 345px, can i set that image height will be proportional and automatic generated? At the moment i have also to set fix image height, and that's needed automaticly. Possible?

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

More
11 years 11 months ago #175036 by nicolas
Yes if course. Just leave empty the height field and turn off the "force size" option and your images height will vary in order to have the correct width and keep the proportion.

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

More
11 years 11 months ago - 11 years 11 months ago #175100 by shpuser
dfI seen now after this changes, my images are resized directly in upload folder, my given size is: 445px, my image size for upload is: 545px, and backoffice setup is: prntscr.com/4urco5 , if i upload image the image is resized to 150px width, what have i to do to fix this problem? Normaly are images never resized in upload folder, right?

Hikashop Version: Business: 2.3.3
Last edit: 11 years 11 months ago by shpuser.

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

More
11 years 11 months ago #175104 by Jerome
Hi,

www.hikashop.com/support/support/documen...fig.html#main_images
Sorry, it's wrong.
The options "Image width" and "Image heigh" are options to specify the maximum image size. It will affect the image that you upload in the upload folder.

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

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

Time to create page: 0.156 seconds
Powered by Kunena Forum