Keyword

Stop K2 image resizing

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 1 month 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.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Electronic Beatz Network
  • Electronic Beatz Network's Avatar
  • Offline
  • New Member
More
3 years 6 months ago - 3 years 6 months ago #177186 by Electronic Beatz Network
Replied by Electronic Beatz Network 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: 3 years 6 months ago by Electronic Beatz Network.

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

More
3 years 6 months ago #177205 by JoomlaWorks
Replied by JoomlaWorks on topic Stop K2 image resizing
This script can rebuild all your images ;)

github.com/getk2/rebuildK2imageCache

Fotis / 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