Keyword

Don't need to generate Xlarge image

  • STEPHAN HERBY
  • STEPHAN HERBY's Avatar Topic Author
  • Offline
  • Premium Member
More
7 years 4 months ago #159529 by STEPHAN HERBY
Don't need to generate Xlarge image was created by STEPHAN HERBY
Hi, In order to preserve space on my server, i would like K2 stop generating Xlarge image.
I 'm ready to hack core file if needed (as i have my own process to update my websites)...
Si I have noticed that the info to generate images for K2 is in file administrator > components > com_k2 > models > item.php
Will it be enough to just coment for example from line 322 to line 339 for XLlarge images :
//XLarge image
				$handle->image_resize = true;
				$handle->image_ratio_y = true;
				$handle->image_convert = 'jpg';
				$handle->jpeg_quality = $params->get('imagesQuality');
				$handle->file_auto_rename = false;
				$handle->file_overwrite = true;
				$handle->file_new_name_body = $filename.'_XL';
				if (JRequest::getInt('itemImageXL'))
				{
					$imageWidth = JRequest::getInt('itemImageXL');
				}
				else
				{
					$imageWidth = $params->get('itemImageXL', '800');
				}
				$handle->image_x = $imageWidth;
				$handle->Process($savepath);
Thank you for any advice. Specially if you have a better idea that doesn't hack core file :-)

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 4 months ago #159563 by Krikor Boghossian
Replied by Krikor Boghossian on topic Don't need to generate Xlarge image
I would opt in to remove the original images from being stored in the /src folder (BACKUP FIRST).
This will save more space and you won't resort to hacking the core.

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