D0Gmatist / smart-lencioni-image-resizer

Automatically exported from code.google.com/p/smart-lencioni-image-resizer
GNU General Public License v3.0
0 stars 0 forks source link

how to make the path to the source image #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
How do I get to the correct path ?

Slir seems installed good, since I get the normal error message :
http://www.kasperkamperman.com/slir/

I don't get an error message when putting some parameters, then I get an 404 : 
http://www.kasperkamperman.com/slir/w300-h300-c1:1/

How do I point to the original image on this path ?
http://www.kasperkamperman.com/wordpress_kk/wp-content/gallery/kekkeknutsels/knu
tsels1.jpg

I tried several methods :
from root :
http://www.kasperkamperman.com/slir/w300-h300-c1:1/sites/kasperkamperman.com/www
/wordpress_kk/wp-content/gallery/kekkeknutsels/knutsels1.jpg

url :
http://www.kasperkamperman.com/slir/w300-h300-c1:1/http://www.kasperkamperman.co
m/www/wordpress_kk/wp-content/gallery/kekkeknutsels/knutsels1.jpg

one up :
http://www.kasperkamperman.com/slir/w300-h300-c1:1/../wordpress_kk/wp-content/ga
llery/kekkeknutsels/knutsels1.jpg

this is then automaticly changed to :
http://www.kasperkamperman.com/slir/wordpress_kk/wp-content/gallery/kekkeknutsel
s/knutsels1.jpg

I the error log I get this message :
[Wed Aug 26 16:18:14 2009] [130.89.182.204 Mozilla/5.0 (Macintosh; U; Intel
Mac OS X 10.5; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2] Not enough
parameters were given.

See the attachment for the same errors. I have the idea that not everytime
an items in the error log is created. So maybe one of my path could be
correct. 

I run wordpress, but I don't know if thats a problem. Version 1.4 works
fine for me, however I need normal looking path for qtranslate. 

Original issue reported on code.google.com by kasperka...@gmail.com on 26 Aug 2009 at 9:25

Attachments:

GoogleCodeExporter commented 8 years ago
I got it to work two up :
http://www.kasperkamperman.com/slir/w300-h300-c1:1/../../wordpress_kk/wp-content
/gallery/kekkeknutsels/knutsels1.jpg

Seems really logical now, but maybe its good to put something in the 
documentation
about this. Since in 1.4 I worked with an absolute url like :
http://www.kasperkamperman.com/..etc 

Good to now that the parameters count as a virtual directory. 

Brilliant work next to that minor thing. Compliments and really usefull !

Original comment by kasperka...@gmail.com on 26 Aug 2009 at 11:21

GoogleCodeExporter commented 8 years ago
Mmm, I thought it worked, but actually it show the original picture, so the 
script
doesn't resize anything. Hope you have some information how to construct the 
path to
the image file. 

Original comment by kasperka...@gmail.com on 27 Aug 2009 at 10:48

GoogleCodeExporter commented 8 years ago
Ok problem solved. 
I forgot to upload the .htaccess ( yes I'm stupid thank you ) :)

By the way to correct path is starting from the folder where the slir directory 
is in

new : www.bla.com/slir/w300-h300-c1:1/images/test.jpg
original : www.bla.com/images/test.jpg

Original comment by kasperka...@gmail.com on 30 Aug 2009 at 8:15

GoogleCodeExporter commented 8 years ago
Thanks for the report. It looks like you resolved everything on your end, but I 
want to 
make sure that everything is working as expected here before I close this issue 
up.

Original comment by joe.lencioni on 25 Jan 2010 at 7:15

GoogleCodeExporter commented 8 years ago
Yes, everything works perfectly. Thank you for your script. 

Original comment by kasperka...@gmail.com on 25 Jan 2010 at 7:53