Menu Content

Currencies Accepted


Shopping Cart

cart
Your Cart is currently empty.

How to Download A Product

For most of our products, including the free ones, you will need to go through checkout and place an order.

Read More

 

Find Us Elsewhere

Follow us on Twitter

Spiral Scripts on Facebook

rapidssl_ssl_certificate
2Checkout.com is a worldwide leader in payment services

Google ads

Home » Forum

Welcome, Guest

Imgen not working correctly on Joomla 1.7
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Imgen not working correctly on Joomla 1.7

Imgen not working correctly on Joomla 1.7 11 months, 2 weeks ago #222

I've just installed imgen component and plugin. I want to use it for resizing the images in the blog layout. I hope it will work, because I was so happy to have find a plugin like this!

My website is www.nieuweaarde.com
You can see that the image is resizes to 100x100 and the link is replaced for a imgen link. Only the image is not showing. The folder or file is also not created. What can it be?

Thanks in advance!

Greetings,
Laura

Re: Imgen not working correctly on Joomla 1.7 11 months, 2 weeks ago #223

After a while it worked, I didn't do anything.

I'm trying to reproduce:
Changed the option: Encode image name = yes (it was no)
Result: images are not showing (see problem above)
Delete cache: no result (still not working)

Then I changed it back to Encode = no and it's still not working! Just like in the beginning.. this is very strange. I'm gonna wait (just like the last time) and hopefully it will work.. which is almost impossible, but who knows.

Re: Imgen not working correctly on Joomla 1.7 11 months, 2 weeks ago #224

Solved it by de-installing the component. Made the images folder writable and re-installed the component (not the plugin).

Re: Imgen not working correctly on Joomla 1.7 11 months, 2 weeks ago #225

I just wanted to say that I'm very happy with the plugin!! I only added a class and some css to make them float left en added a border. Perfect!! Thank you!

imageResizer.php line 115:
 $replacementText = ' src="'.$replacementSrc.'" class="imageresized" width="'.$width.'" height="'.$height.'"'.$replacementClass.$replacementTitle.$replacementAlt;


.imageresized {
border: 1px solid #999;
padding:3px;
float:left;
margin-right:5px;
}
Last Edit: 11 months, 2 weeks ago by Nieuwe Aarde.

Re: Imgen not working correctly on Joomla 1.7 11 months, 2 weeks ago #226

Thanks for sharing the info. Yes the images folder needs to be writable (755). The component attempts to create the caching folder (images/imgen) when it is installed, if the images folder isn't writable then this can't happen.

If you don't want your images folder to be writable you can create a writable cache folder anywhere you want on your site, and change the 'Default Resized Images Folder' parameter in the component configuration to use that folder.

Re: Imgen not working correctly on Joomla 1.7 11 months, 2 weeks ago #227

Thanks!
In my case the image folder had to be 777, but I dont mind, the alternative will do just fine.
Another note: resizing the images doesn't work for images that are in a subfolder with a space in it. I had to rename the folder 'bewust zijn' to 'bewust_zijn'. No problem for me, but just to let you know!

Re: Imgen not working correctly on Joomla 1.7 11 months, 2 weeks ago #228

It isn't a good idea to have a space in the folder name, it isn't strictly a valid url.

Re: Imgen not working correctly on Joomla 1.7 11 months, 2 weeks ago #229

Me again..

I dont want the images to be resized in the articles. Now you can only set width and height. It would be nice if you can turn it off in the parameters.
For now i'll start looking in the code unless you have a other solution?

Re: Imgen not working correctly on Joomla 1.7 11 months, 2 weeks ago #230

You can edit imageResizer.php lines 49 to 69:-

		if($layout == 'blog')
{
$width = (int)$pluginParams->get('thumbnailWidth','100');
$height = (int)$pluginParams->get('thumbnailHeight','100');
 
}
else
{
$view = JRequest::getVar('view','article');
if($view == 'frontpage'||$view == 'featured')
{
$width = (int)$pluginParams->get('frontpageWidth','200');
$height = (int)$pluginParams->get('frontpageHeight','200');
}
else
{
$width = (int)$pluginParams->get('articleWidth','300');
$height = (int)$pluginParams->get('articleHeight','300');
}
 
}


to

		if($layout == 'blog')
{
$width = (int)$pluginParams->get('thumbnailWidth','100');
$height = (int)$pluginParams->get('thumbnailHeight','100');
 
}
else
{
return;
}
The following user(s) said Thank You: Nieuwe Aarde

Re: Imgen not working correctly on Joomla 1.7 11 months, 2 weeks ago #231

Thank you!

Last question.. how can I disable the image resizing for every other image? I only want it for the blog layout.
I've tried to add the line
if($layout == 'blog') { .... }
 

But that didn't work.. i'm not that good in coding (only know small things).

It only resizes the images when in blog layout, but it not only resizes the article images, also the module images. When i'm in the article layout the module images are back.
Last Edit: 11 months, 2 weeks ago by Nieuwe Aarde.

Re: Imgen not working correctly on Joomla 1.7 11 months, 2 weeks ago #234

The code I post should do that - do you mean something else? I don't quite understand.

Re: Imgen not working correctly on Joomla 1.7 11 months, 2 weeks ago #236

I've solved it by changing the way of image resizing in the modules.
Thanks for everything!

Re: Imgen not working correctly on Joomla 1.7 10 months, 1 week ago #268

Solution by Impreseleonardo.it:
"I modified the file /plugins/content/imageResizer/imageResizer.php at line 104
if(!preg_match('/\?/',$subPatterns[1]))


adding this regular expression to bypass the resizing procedure :
if(!preg_match('/\?/',$subPatterns[1]) && (!preg_match('/banners/',$subPatterns[1])) )


and i've putted all my banners in the subfolder images/banners/ "
  • Page:
  • 1
Time to create page: 1.49 seconds
 
 

VirtueMart Featured Products Grid

Switch View

This module displays a short excerpt from articles in a selected category or section, or from a specified list of articles, with link and optional thumbnail image.

£14.00


Buy both our Flash slideshow products for Virtuemart and save £5.

£25.00


A Flash puzzle game for the Joomla! content management system. This would be suitable for a site aimed at children.

£12.00


This module can be used as a replacement for the Virtuemart featured products, top products, random products or recent products modules. It displays product images as a 3 Dimensional Flash slideshow.

£15.00