Keyword

Stop K2 image resizing

More
4 years 7 months ago #152320 by Krikor Boghossian
Replied by Krikor Boghossian on topic Stop K2 image resizing
Not really, having the utmost control over your content is why you are using a CMS in the first place.

IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

---
JoomlaWorks
www.joomlaworks.net/

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

More
1 week 1 day ago - 1 week 1 day ago #177186 by Florian Martin
Replied by Florian Martin on topic Stop K2 image resizing
It helpeld me four years later! I had a problem with the images in a Tag-Listing... thanks to yout - problem solved.

egculture.de/labels/electronic-groove-culture/artists
<? if(count($this->items)) { ?>
<div class="row">
	<? foreach($this->items as $item) { ?><div class="col-xs-4 col-sm-3 col-md-2 col-lg-2">
		<a href="<?=$item->link; ?>" class="thumbnail"><img class="img-thumbnail" src="<?=JURI::base(true).'/media/k2/items/src/'.md5("Image".$item->id).'.jpg'; ?>" alt="<? if(!empty($item->image_caption)) echo K2HelperUtilities::cleanHtml($item->image_caption); else echo K2HelperUtilities::cleanHtml($item->title); ?>" style="margin:5px;"/></a>
	</div><? }?>
</div>
<? }?>

Background: I change the generic-imagesize in the backend a few times the last years. But the existing images weren't resized... so I had a tag-listing-view with x different image-sizes...
Last edit: 1 week 1 day ago by Florian Martin.

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
3 days 12 hours ago #177205 by Fotis
Replied by Fotis on topic Stop K2 image resizing
This script can rebuild all your images ;)

github.com/getk2/rebuildK2imageCache

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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


Powered by Kunena Forum