Page 7 of 33
Re: Announcement: New plug-in SuperSizer
Posted: Wed Dec 02, 2009 6:08 pm
by darconny
Well, I didn't ask for it, I am very happy with solution that works
So, when I put new plugin file I get this:
Warning:
getimagesize(
http://localhost/cms-1.6.6/uploads/cgblog/id35/img 105.jpg) [function.getimagesize]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in C:\xampp\htdocs\cms-1.6.6\plugins\function.supersizer.php on line 41
Warning: Division by zero in C:\xampp\htdocs\cms-1.6.6\plugins\function.supersizer.php on line 252
Nothing changed in my setup, without adding new parameters.
cheers
Darko
Re: Announcement: New plug-in SuperSizer
Posted: Wed Dec 02, 2009 7:24 pm
by JeremyBASS

well I had a few requests for the smaple to speed up bysides in here ... but I think I solved the issue you had... in last versions I had
$this->strOriginalImagePath = str_replace(" ", "%20", $strPath);
thou I try to fix it for one of my tests that failed... it fixed it for me but looks like it failed for you...
now I did
$this->strOriginalImagePath = htmlentities($strPath);
and it fixes my test... and should be good for you too...
tested here
http://www.digitalbarn.tv/testpage.html
but the last file had a no no in the name.. Camp'09 011.jpg which is why the attempt at the fix...
the other issues where on the filters of png and gifs...
All should be good now...
let me know if any one has any other issues...
Cheers
Jeremy
Re: Announcement: New plug-in SuperSizer
Posted: Wed Dec 02, 2009 7:48 pm
by darconny
Ok, here are some other issues
Warning:
getimagesize(
http://localhost/cms-1.6.6/uploads/cgblog/id35/img 105.jpg) [function.getimagesize]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in C:\xampp\htdocs\cms-1.6.6\plugins\function.supersizer.php on line 45
Warning: Division by zero in C:\xampp\htdocs\cms-1.6.6\plugins\function.supersizer.php on line 256
Darko
Re: Announcement: New plug-in SuperSizer
Posted: Wed Dec 02, 2009 8:00 pm
by JeremyBASS
what the heck... it's that $this->strOriginalImagePath = htmlentities($strPath); line... hmm... it should have worked for you...
see getimagesize(
http://localhost/cms-1.6.6/uploads/cgblog/id35/img 105.jpg) should have been
getimagesize(
http://localhost/cms-1.6.6/uploads/cgbl ... %20105.jpg) which would/should have worked...
I'll have to read up as nothing seems to work with the spaces and what not... and you cleared the image cache first?
Jeremy
Re: Announcement: New plug-in SuperSizer
Posted: Wed Dec 02, 2009 8:24 pm
by darconny
Hmm, what image cache I have to clear? Maybe I missed something here..
Re: Announcement: New plug-in SuperSizer
Posted: Wed Dec 02, 2009 8:41 pm
by JeremyBASS
oh the SuperSizerTmp folder... but that is a long shot... and shouldn't pay in to this as I think of it... Just stumped on what would be the 100% thing to do... it work on all my test beds... hmmm
Re: Announcement: New plug-in SuperSizer
Posted: Wed Dec 02, 2009 8:44 pm
by fredp
JeremyBASS wrote:
• Sample- (optional) Default:true - This choose a low quality resize which can be much faster in the processing time. Remember the image is only resized once and then cached so this is only needed for sites with ultra high turnover on the resized images.
...
Hi Jeremy,
I just tried the last posted version. It works for me. I tried it with no Sample arg, with Sample=true, and with Sample=false. All worked as expected -- Sample=false resulted in much faster cache reload times.
Also, I suggest one minor change to the help text, for clarity:
• Sample- (optional) Default:true - Set false to choose a low quality resize which can be much faster in the processing time. Remember the image is only resized once and then cached so this is only needed for sites with ultra high turnover on the resized images.
Hope this helps,
Fred
Re: Announcement: New plug-in SuperSizer
Posted: Wed Dec 02, 2009 8:53 pm
by darconny
JeremyBASS wrote:
oh the SuperSizerTmp folder... but that is a long shot... and shouldn't pay in to this as I think of it... Just stumped on what would be the 100% thing to do... it work on all my test beds... hmmm
I just tried this.. deleted all images in SuperSizerTmp folder.. the same result, I get these warnings.
cheers
Darko
Re: Announcement: New plug-in SuperSizer
Posted: Wed Dec 02, 2009 9:03 pm
by JeremyBASS
hmm.. figures... my test bed works... works for fredp.... hmm... may-be htmlspecialchars() would be the ticket... I try that in just a bit...
If you two could give me the orgian image paths that would show me what up... why the difference... thank you two for testing here...
Re: Announcement: New plug-in SuperSizer
Posted: Wed Dec 02, 2009 9:25 pm
by fredp
JeremyBASS wrote:
If you two could give me the orgian image paths that would show me what up...
Done -- Sent by PM.
Fred
Re: Announcement: New plug-in SuperSizer
Posted: Wed Dec 02, 2009 9:34 pm
by JeremyBASS
Ok.. So I bet if you were to take one of the images and folders and put a space in them you'll see the folder... it's the spaces and ' that seem to plague this... I'll have to see darconny's but I'll just keep trying different ways to handle escaping the path for the getimagesize() so it don't freak out...

gosh an I was hoping to more on to the crop function... I have such a great idea on how to handle it... gaaa... lol
thanks
Jeremy
Re: Announcement: New plug-in SuperSizer
Posted: Wed Dec 02, 2009 10:03 pm
by JeremyBASS
ok.. here I tested this with htmlspecialchars() and it works on the test bed with the spaces and all in the folders and all.. I bet this works for everyone.... bet/hope same thing lol... -Jeremy
Re: Announcement: New plug-in SuperSizer
Posted: Wed Dec 02, 2009 10:26 pm
by darconny
hmm..nope, the same.
I'm sorry for all this mess, don't know what's the problem on my site.
I used SuperSizer along with CGBlog, here is a part of the summary template:
{assign var=Photo value=$field->value}
{assign var=Location value=$entry->file_location}
{assign var=Item value=$entry->id}
detail_url alt="{$entry->title}">
{supersizer path="$Location/$Photo" height='80' Quality=100 Subdir="$Item"}
The last version before you implemented newest features works excellent. And now with the latest file I get this on the page:
warning:
getimagesize(
http://localhost/cms-1.6.6/uploads/cgblog/id35/img 105.jpg) [function.getimagesize]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in C:\xampp\htdocs\cms-1.6.6\plugins\function.supersizer.php on line 46
Warning: Division by zero in C:\xampp\htdocs\cms-1.6.6\plugins\function.supersizer.php on line 257
What do you mean by showing you origin image paths, where should I look?

Re: Announcement: New plug-in SuperSizer
Posted: Wed Dec 02, 2009 10:36 pm
by JeremyBASS
well see it's looking for
http://localhost/cms-1.6.6/uploads/cgblog/id35/img 105.jpg so let's do this... can you get directly to
http://localhost/cms-1.6.6/uploads/cgblog/id35/img 105.jpg from the address bar... that tells me everything I need to know...
This is odd the test site
http://www.digitalbarn.tv/testpage.html the image at the very bottom not only has a space in it but it also has a ' in it... so it should work for you...
I'm doing a job now so I'll have to come back to it later today... Thanks for the help
Jeremy
Re: Announcement: New plug-in SuperSizer
Posted: Wed Dec 02, 2009 10:41 pm
by darconny
yes I see the path.. I can get directly to that link and that opens source image in a page.
no problem.. thank you for all your work
Darko