Keyword

K2 Power Tip: Stop K2 from Processing Images - K2 Hack

  • Joe Campbell
  • Joe Campbell's Avatar Topic Author
  • Offline
  • Platinum Member
More
9 years 2 weeks ago #142970 by Joe Campbell
Hello K2ers,

I have noticed a number of K2 image questions, which I at one time also had. With trial & error, I discussed that you can remove the K2 image processing functionality, leaving the image you upload intact. So you can retain the image quality/compression of each image you upload to K2.

Find & comment out the following code for the image size you use as your main item image (e.g. Large):

File: administrator\components\com_k2\models\item.php
$handle->image_resize = true;
$handle->image_ratio_y = true;
$handle->image_convert = 'jpg';
$handle->jpeg_quality = $params->get('imagesQuality');

So that is looks like this (Large Image example):

//Large image
//$handle->image_resize = true;
//$handle->image_ratio_y = true;
//$handle->image_convert = 'jpg';
//$handle->jpeg_quality = $params->get('imagesQuality');

I hope you find this tip helpful.

Regards,

Joe Campbell

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

More
9 years 2 weeks ago - 9 years 2 weeks ago #142978 by michael83
Hello,

I tested the letter your little tutorial and none of this works, the image does not appear even to upload commenting.

Regards.
Last edit: 9 years 2 weeks ago by michael83.

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

More
9 years 2 weeks ago #142979 by Mika Knuutila
Replied by Mika Knuutila on topic K2 Power Tip: Stop K2 from Processing Images - K2 Hack
Really waiting K2v3 which have ImageMagick option :)

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

  • Joe Campbell
  • Joe Campbell's Avatar Topic Author
  • Offline
  • Platinum Member
More
9 years 2 weeks ago #142981 by Joe Campbell
Try removing the Item image options size(s) from the category.

Make sure to copy & save to place back if you need to.

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


Powered by Kunena Forum