I have put slir in directory and get all the time: "image does not exists"

72 views
Skip to first unread message

AndyPSV

unread,
Jan 18, 2011, 6:52:41 PM1/18/11
to Smart Lencioni Image Resizer
I have put slir in directory /libs/slir and get all the time: "image
does not exists";

I must always use direct paths, what to do?

<img src='<% $URL %>libs/slir/w200-h200/http://127.0.0.1/x.jpg"
alt="Don't forget your alt text" />

I've typed the direct path to the browser (which is printed in the
error, eg. C:\Program Files... etc) and I get the photo normally.
What's the issue? How can I resolve it? I really want to test your
library.

Thanks.

AndyPSV

unread,
Jan 19, 2011, 7:54:19 AM1/19/11
to Smart Lencioni Image Resizer
I've made a mistake:

-> ' and closed with -> "

I've put now ' and ' and it works.
I apologize for my mistake.

If I would use code like this: <% $URL %>libs/slir/w200-h200/http://
127.0.0.1/x.jpg
would my pictures were indexed properly by Google and other search
engines?

Is the cache by default turned on?

Joe Lencioni

unread,
Jan 19, 2011, 9:28:42 AM1/19/11
to smart-lencioni...@googlegroups.com
First off, you don't need to include the http://domain.com part in your image path. SLIR will just automatically strip that out anyway. What you want for the image path part of the URL is the path of the image on the server, relative to the document root as specified in your config file. So, if your website files were located in /var/www/ (and that is the document root in your config file), SLIR is located in /var/www/slir/, and your image was in /var/www/images/image.jpg, then you would use SLIR like this: http://mydomain.com/slir/w200-h200/images/image.jpg

Is the cache by default turned on?

Yes. There are actually two caches that are turned on by default: the rendered cache and the request cache. The rendered cache stores rendered copies of the files whereas the request cache stores symlinks that point to those rendered files. The request cache seems to have some issues on some Windows servers and can be disabled in the config file.

I hope that helps.

AndyPSV

unread,
Jan 19, 2011, 11:16:18 AM1/19/11
to Smart Lencioni Image Resizer
Yes, done that. Works perfectly.
<img src='<% $URL %>slir/w720-h720/x.jpg' alt=""/>

The only thing which is missing in slir and should be available for
sure is option to save your resized image.
http://groups.google.com/group/smart-lencioni-image-resizer/browse_thread/thread/1c81cc7418297e38

On Jan 19, 3:28 pm, Joe Lencioni <joe.lenci...@gmail.com> wrote:
> First off, you don't need to include thehttp://domain.compart in your
Reply all
Reply to author
Forward
0 new messages