Keyword

Image resize options

  • IOANNIS HLIOPOULOS
  • IOANNIS HLIOPOULOS's Avatar Topic Author
  • Offline
  • New Member
More
10 years 7 months ago #125511 by IOANNIS HLIOPOULOS
Image resize options was created by IOANNIS HLIOPOULOS
Hi all,
K2 by default resize the images by width is there any way to change it to height?
I did few tests at css to (catItemImageBlock) but the images don't look good.

Any help/guidance will be much appreciated...

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

More
10 years 7 months ago #125512 by Lefteris
Replied by Lefteris on topic Re: Image resize options
No. There is no such setting.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • IOANNIS HLIOPOULOS
  • IOANNIS HLIOPOULOS's Avatar Topic Author
  • Offline
  • New Member
More
10 years 7 months ago - 10 years 7 months ago #125513 by IOANNIS HLIOPOULOS
Replied by IOANNIS HLIOPOULOS on topic Re: Image resize options
Lefteri I know there is no such a setting although can you advice in which file I can change the resize from width to height?

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

More
10 years 7 months ago #125514 by Lefteris
Replied by Lefteris on topic Re: Image resize options
Try to change file /administrator/components/com_k2/models/item.php line 338 from:
$handle->image_x = $imageWidth;

to :
$handle->image_y = $imageWidth;

I am not sure if it will work. If it doesn't take a look at the library K2 is using for resizing at www.verot.net/php_class_upload.htm . Finally note that since this is a core hack you will lose it in future updates and of course you cannot get any further support.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum