- Posts: 97
- Thank you received: 0
Image engine possibilities/issues?
11 years 11 months ago #174919
by shpuser
Image engine possibilities/issues? was created 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:
What have i to put on height to get height automatic generated (instead of: $this->image->main_thumbnail_y........?)?
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);
Please Log in or Create an account to join the conversation.
11 years 11 months ago #174961
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Image engine possibilities/issues?
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,
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.
11 years 11 months ago #175029
by shpuser
Replied by shpuser on topic Image engine possibilities/issues?
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.
11 years 11 months ago #175036
by nicolas
Replied by nicolas on topic Image engine possibilities/issues?
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.
11 years 11 months ago - 11 years 11 months ago #175100
by shpuser
Replied by shpuser on topic Image engine possibilities/issues?
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
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.
11 years 11 months ago #175104
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Image engine possibilities/issues?
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,
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