- Posts: 438
COMMUNITY FORUM
- Forum
- K2 Community Forum
- English K2 Community
- K2 Power Tip: Stop K2 from Processing Images - K2 Hack
K2 Power Tip: Stop K2 from Processing Images - K2 Hack
- Joe Campbell
-
Topic Author
- Offline
- Platinum Member
Less
More
9 years 11 months ago #142970
by Joe Campbell
K2 Power Tip: Stop K2 from Processing Images - K2 Hack was created 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
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
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.
- michael83
-
- Offline
- New Member
Less
More
- Posts: 8
9 years 11 months ago - 9 years 11 months ago #142978
by michael83
Replied by michael83 on topic K2 Power Tip: Stop K2 from Processing Images - K2 Hack
Hello,
I tested the letter your little tutorial and none of this works, the image does not appear even to upload commenting.
Regards.
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 11 months ago by michael83.
Please Log in or Create an account to join the conversation.
- Mika Knuutila
-
- Offline
- Junior Member
Less
More
- Posts: 20
9 years 11 months 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
-
Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 438
9 years 11 months ago #142981
by Joe Campbell
Replied by Joe Campbell on topic K2 Power Tip: Stop K2 from Processing Images - K2 Hack
Try removing the Item image options size(s) from the category.
Make sure to copy & save to place back if you need to.
Make sure to copy & save to place back if you need to.
Please Log in or Create an account to join the conversation.
- Forum
- K2 Community Forum
- English K2 Community
- K2 Power Tip: Stop K2 from Processing Images - K2 Hack