- Posts: 22
COMMUNITY FORUM
[FIXED] Blurry category images
- michael neese
-
- Offline
- Junior Member
Your call for someone fixing this is out of line. Maybe you should head up a development team, spend a couple of years working on your own "K2XL", then you can have it your way.
Please Log in or Create an account to join the conversation.
- Todd Allen
-
Topic Author
- Offline
- Junior Member
- Posts: 24
To all that have run into this problem, here is the fix:
- Open the category.php file located in your \administrator\components\com_k2\models folder.
- Go down to line #67
- After line line #67, add this line of code:
$handle->jpeg_quality = $params->get('imagesQuality');
- Save and upload.
Adding that line of code will set the quality of the uploaded category images to whatever you have specified the quality should be under the K2 parameters.
The problem (Michael) is that the K2 developers did not set the quality of the upload to the quality set in the parameters. And by not doing that, it defaulted to the library preset of 85% which is why we were all seeing artifacts in the uploaded images.
So, as you can see Michael:
1. The K2 developers WERE to blame as this was clearly an oversight (it was setup this way for item uploads btw, I made sure of it after fixing this code)
2. I actually am the head of a development team at an advertising agency and we actually have deployed our own CMS which most of our clients use. However some specifically request Joomla and we work with the best tools available when we have to use it. K2 is still the best at what it does IMO.
3. Michael, let me know if you need any help installing purchased templates in the future. I saw you were having some trouble in your other threads. I have experience coding Joomla templates from scratch and can probably help you. : P
Now who was out of line? I will be anxiously awaiting your reply. LOL!
Please Log in or Create an account to join the conversation.
- Todd Allen
-
Topic Author
- Offline
- Junior Member
- Posts: 24
Hope this helps guys!
Please Log in or Create an account to join the conversation.
- Leah Bartlett
-
- Offline
- New Member
- Posts: 12
Please Log in or Create an account to join the conversation.
- Doc Chaos
-
- Offline
- Junior Member
- Posts: 23
Now if we could just bypass it completely when we have done all the work ourselves and already have the perfect quality, perfect size image as you mentioned ...
K2x said:~~ ALL THAT STUFF YOU SAID UP THERE DOESN'T NEED REPEATING HERE ~~
To all that have run into this problem, here is the fix: - Open the category.php file located in your \administrator\components\com_k2\models folder. - Go down to line #67 - After line line #67, add this line of code:
$handle->jpeg_quality = $params->get('imagesQuality');
- Save and upload.
~~ THAT IS ACTUALLY WORTH REPEATING A FEW TIMES :P ~~
Please Log in or Create an account to join the conversation.
- michael neese
-
- Offline
- Junior Member
- Posts: 37
Please Log in or Create an account to join the conversation.
- Todd Allen
-
Topic Author
- Offline
- Junior Member
- Posts: 24
Perhaps someone else can confirm that has upgraded to 2.4?
michael neese said:K2x...thanks for the snippet. Is that good for 2.4.1?
Please Log in or Create an account to join the conversation.
- michael neese
-
- Offline
- Junior Member
- Posts: 37
www.jwcooper.net/our-products/itemlist/category/6-buckles.html
Please Log in or Create an account to join the conversation.
- Todd Allen
-
Topic Author
- Offline
- Junior Member
- Posts: 24
Please Log in or Create an account to join the conversation.
- Doc Chaos
-
- Offline
- Junior Member
- Posts: 23
K2x said:Excellent - thanks for testing that Michael. Those images looks great (and crisp as they should)!! I also received an email from Joomlaworks today and they said they would verify the bug fix and implement into the 2.5 release.
Please Log in or Create an account to join the conversation.
- michael neese
-
- Offline
- Junior Member
- Posts: 22
I have updated several sites with this change, but the sad thing is...now I have to remove the offensive older category images and update the images...somewhat of a challenge for a large site, and I don't think I can ethically charge the client for an update like this....glad it's the category images only and not the item images...
Please Log in or Create an account to join the conversation.
- Ethan Hall
-
- Offline
- New Member
- Posts: 2
This happened when using Aida , is someone experiences this , just hit "use thumbnail" from the images area, that fixes it.
Please Log in or Create an account to join the conversation.
- Todd Allen
-
Topic Author
- Offline
- Junior Member
- Posts: 24
Please Log in or Create an account to join the conversation.
- Ethan Hall
-
- Offline
- New Member
- Posts: 2
K2x said:Articles? There are no articles in K2 - only categories and items. If you are referring to the Core Joomla Articles, the answer is no. This class is only used by K2, not by the Joomla core.
Please Log in or Create an account to join the conversation.
- Troy Thomas
-
- Offline
- New Member
- Posts: 12
K2x said:Articles? There are no articles in K2 - only categories and items. If you are referring to the Core Joomla Articles, the answer is no. This class is only used by K2, not by the Joomla core.
Same thing here, inside items when i show a resized image it is blurry.
Please Log in or Create an account to join the conversation.
- Tangent Alliance
-
- Offline
- New Member
- Posts: 1
if
($handle->uploaded)
Photos are still blurry. Tried renaming my original pics and reloading them in new 'items'. Nada ??
help and regards.
Help
K2x said:
Alright Michael, because I find you so truly annoying, I decided to take the time to look through the files and fix the problem (rather than just run my mouth like you have been). First, I can understand why the K2 development team may not have replied to my original inquiry --- they didn't write the upload class that is used to handle file uploads. It was originally written by Colin Verot at www.verot.net. That's not to discredit the K2 team because I use established libraries whenever I can during development too. It saves time and time is money. The good news is that Colin took the time to document the usage of his library VERY well to assist developers in understanding and implementing it correctly (Thank You Colin). If only Michael were half as helpful...To all that have run into this problem, here is the fix:- Open the category.php file located in your \administrator\components\com_k2\models folder.- Go down to line #67- After line line #67, add this line of code:$handle->jpeg_quality = $params->get('imagesQuality');- Save and upload.Adding that line of code will set the quality of the uploaded category images to whatever you have specified the quality should be under the K2 parameters.The problem (Michael) is that the K2 developers did not set the quality of the upload to the quality set in the parameters. And by not doing that, it defaulted to the library preset of 85% which is why we were all seeing artifacts in the uploaded images.So, as you can see Michael:1. The K2 developers WERE to blame as this was clearly an oversight (it was setup this way for item uploads btw, I made sure of it after fixing this code)2. I actually am the head of a development team at an advertising agency and we actually have deployed our own CMS which most of our clients use. However some specifically request Joomla and we work with the best tools available when we have to use it. K2 is still the best at what it does IMO.3. Michael, let me know if you need any help installing purchased templates in the future. I saw you were having some trouble in your other threads. I have experience coding Joomla templates from scratch and can probably help you. : PNow who was out of line? I will be anxiously awaiting your reply. LOL!
Please Log in or Create an account to join the conversation.
- vecdom
-
- Offline
- New Member
- Posts: 8
- Open the item.php file located in your \administrator\components\com_k2\models folder. - Go down to line #184 ( if ($handle->uploaded) { ) - After line line #184, add this line of code: $handle->jpeg_quality = $params->get('imagesQuality'); - Save and upload.
- You will need to re-upload images.
Tangent Alliance said:
Help. Assuming line 67 was
if
($handle->uploaded)
Photos are still blurry. Tried renaming my original pics and reloading them in new 'items'. Nada ??
help and regards.
Help
K2x said:
Alright Michael, because I find you so truly annoying, I decided to take the time to look through the files and fix the problem (rather than just run my mouth like you have been). First, I can understand why the K2 development team may not have replied to my original inquiry --- they didn't write the upload class that is used to handle file uploads. It was originally written by Colin Verot at www.verot.net. That's not to discredit the K2 team because I use established libraries whenever I can during development too. It saves time and time is money. The good news is that Colin took the time to document the usage of his library VERY well to assist developers in understanding and implementing it correctly (Thank You Colin). If only Michael were half as helpful...To all that have run into this problem, here is the fix:- Open the category.php file located in your \administrator\components\com_k2\models folder.- Go down to line #67- After line line #67, add this line of code:$handle->jpeg_quality = $params->get('imagesQuality');- Save and upload.Adding that line of code will set the quality of the uploaded category images to whatever you have specified the quality should be under the K2 parameters.The problem (Michael) is that the K2 developers did not set the quality of the upload to the quality set in the parameters. And by not doing that, it defaulted to the library preset of 85% which is why we were all seeing artifacts in the uploaded images.So, as you can see Michael:1. The K2 developers WERE to blame as this was clearly an oversight (it was setup this way for item uploads btw, I made sure of it after fixing this code)2. I actually am the head of a development team at an advertising agency and we actually have deployed our own CMS which most of our clients use. However some specifically request Joomla and we work with the best tools available when we have to use it. K2 is still the best at what it does IMO.3. Michael, let me know if you need any help installing purchased templates in the future. I saw you were having some trouble in your other threads. I have experience coding Joomla templates from scratch and can probably help you. : PNow who was out of line? I will be anxiously awaiting your reply. LOL!
Please Log in or Create an account to join the conversation.
- B_Dark
-
- Offline
- Premium Member
- Posts: 126
K2x said:
Alright Michael, because I find you so truly annoying, I decided to take the time to look through the files and fix the problem (rather than just run my mouth like you have been). First, I can understand why the K2 development team may not have replied to my original inquiry --- they didn't write the upload class that is used to handle file uploads. It was originally written by Colin Verot at www.verot.net. That's not to discredit the K2 team because I use established libraries whenever I can during development too. It saves time and time is money. The good news is that Colin took the time to document the usage of his library VERY well to assist developers in understanding and implementing it correctly (Thank You Colin). If only Michael were half as helpful...
To all that have run into this problem, here is the fix:
- Open the category.php file located in your \administrator\components\com_k2\models folder.
- Go down to line #67
- After line line #67, add this line of code:
$handle->jpeg_quality = $params->get('imagesQuality');
- Save and upload.
Adding that line of code will set the quality of the uploaded category images to whatever you have specified the quality should be under the K2 parameters.
The problem (Michael) is that the K2 developers did not set the quality of the upload to the quality set in the parameters. And by not doing that, it defaulted to the library preset of 85% which is why we were all seeing artifacts in the uploaded images.
So, as you can see Michael:
1. The K2 developers WERE to blame as this was clearly an oversight (it was setup this way for item uploads btw, I made sure of it after fixing this code)
2. I actually am the head of a development team at an advertising agency and we actually have deployed our own CMS which most of our clients use. However some specifically request Joomla and we work with the best tools available when we have to use it. K2 is still the best at what it does IMO.
3. Michael, let me know if you need any help installing purchased templates in the future. I saw you were having some trouble in your other threads. I have experience coding Joomla templates from scratch and can probably help you. : P
Now who was out of line? I will be anxiously awaiting your reply. LOL!
Please Log in or Create an account to join the conversation.
- Sebastian van Greunen
-
- Offline
- Junior Member
- Posts: 21
Thanks
Please Log in or Create an account to join the conversation.
- Gwin
-
- Offline
- New Member
My site is www.lcjp.org - the images are in the slider.
Please Log in or Create an account to join the conversation.