Hi. I have recently uploaded the new Dancer plugin for common task of images thumbnails creation: http://search.cpan.org/~lonerr/Dancer-Plugin-Thumbnail It's probably offtopic for this list, but i hope to get some constructive criticism or new ideas from experienced Dancer developers. I would appreciate any comments! -- Cheers, Oleg A. Mamontov mailto: oleg@mamontov.net jabber: lonerr@charla.mamontov.net icq uin: 79-521-617 cell: +7-903-798-1352
On 14/07/2011 19:13, Oleg A. Mamontov wrote:
Hi.
I have recently uploaded the new Dancer plugin for common task of images thumbnails creation: http://search.cpan.org/~lonerr/Dancer-Plugin-Thumbnail
It's probably offtopic for this list, but i hope to get some constructive criticism or new ideas from experienced Dancer developers.
Hello never off-topic! I need to know those things to update Task::Dancer and include it (unless it has some weird dependencies) Thanks :)
On 07/14/2011 08:13 PM, Oleg A. Mamontov wrote:
Hi.
I have recently uploaded the new Dancer plugin for common task of images thumbnails creation: http://search.cpan.org/~lonerr/Dancer-Plugin-Thumbnail
It's probably offtopic for this list, but i hope to get some constructive criticism or new ideas from experienced Dancer developers.
I would appreciate any comments!
Great! That is certainly one plugin I'll use in the not to distant future. Regards Racke -- LinuXia Systems => http://www.linuxia.de/ Expert Interchange Consulting and System Administration ICDEVGROUP => http://www.icdevgroup.org/ Interchange Development Team
Well done Oleg. I wrote something very similar a few days ago, but have not CPAN it yet because I wasn't happy with how it worked and I thought you would all laugh. My resizer is basically a copy of Apache2-Imager-Resize. The reservation with my design is that I was forced to use a route outside of /public to transform the image. I really would have liked to be able to, if my original image was, /images/fred.jpg to have done the below to transform it /images/fred.jpg?h=50&w=200 but I was forced to /resize/images/fred.jpg?h=50&w=200 as Oleg effectively has Is there a way of getting a user defined route to intercept a file in /public? If that was the case a resizer plugin would more easy integrate with an old system as the images would not need to have there src changed to the new route. No big deal either way. Stephen On Thu, Jul 14, 2011 at 7:19 PM, Stefan Hornburg (Racke) <racke@linuxia.de>wrote:
On 07/14/2011 08:13 PM, Oleg A. Mamontov wrote:
Hi.
I have recently uploaded the new Dancer plugin for common task of images thumbnails creation: http://search.cpan.org/~** lonerr/Dancer-Plugin-Thumbnail<http://search.cpan.org/~lonerr/Dancer-Plugin-Thumbnail>
It's probably offtopic for this list, but i hope to get some constructive criticism or new ideas from experienced Dancer developers.
I would appreciate any comments!
Great! That is certainly one plugin I'll use in the not to distant future.
Regards Racke
-- LinuXia Systems => http://www.linuxia.de/ Expert Interchange Consulting and System Administration ICDEVGROUP => http://www.icdevgroup.org/ Interchange Development Team
______________________________**_________________ Dancer-users mailing list Dancer-users@perldancer.org http://www.backup-manager.org/**cgi-bin/listinfo/dancer-users<http://www.backup-manager.org/cgi-bin/listinfo/dancer-users>
On Jul 14, 2011, at 10:48 PM, Stephen Fenwick-Paul wrote:
Well done Oleg.
I wrote something very similar a few days ago, but have not CPAN it yet because I wasn't happy with how it worked and I thought you would all laugh.
My resizer is basically a copy of Apache2-Imager-Resize.
The reservation with my design is that I was forced to use a route outside of /public to transform the image.
I really would have liked to be able to,
if my original image was,
/images/fred.jpg
to have done the below to transform it
/images/fred.jpg?h=50&w=200
but I was forced to
/resize/images/fred.jpg?h=50&w=200
as Oleg effectively has
Is there a way of getting a user defined route to intercept a file in /public?
If that was the case a resizer plugin would more easy integrate with an old system as the images would not need to have there src changed to the new route. No big deal either way.
Have you any reverse proxy in front of the Dancer application? For example nginx could be easily configured like: location / { proxy_pass http://localhost:8080; } location /images/ { if ( $args ) { rewrite (.*) /resize$1?$args last; } root /path/to/public; } E.g. source images will be served with nginx (root) and resized (detected by non-empty query string) will be proxied to the Dancer application.
Stephen
On Thu, Jul 14, 2011 at 7:19 PM, Stefan Hornburg (Racke) <racke@linuxia.de> wrote: On 07/14/2011 08:13 PM, Oleg A. Mamontov wrote: Hi.
I have recently uploaded the new Dancer plugin for common task of images thumbnails creation: http://search.cpan.org/~lonerr/Dancer-Plugin-Thumbnail
It's probably offtopic for this list, but i hope to get some constructive criticism or new ideas from experienced Dancer developers.
I would appreciate any comments!
Great! That is certainly one plugin I'll use in the not to distant future.
Regards Racke
-- LinuXia Systems => http://www.linuxia.de/ Expert Interchange Consulting and System Administration ICDEVGROUP => http://www.icdevgroup.org/ Interchange Development Team
_______________________________________________ Dancer-users mailing list Dancer-users@perldancer.org http://www.backup-manager.org/cgi-bin/listinfo/dancer-users
_______________________________________________ Dancer-users mailing list Dancer-users@perldancer.org http://www.backup-manager.org/cgi-bin/listinfo/dancer-users
-- Cheers, Oleg A. Mamontov mailto: oleg@mamontov.net jabber: lonerr@charla.mamontov.net icq uin: 79-521-617 cell: +7-903-798-1352
On Thursday 14 July 2011 19:48:50 Stephen Fenwick-Paul wrote:
The reservation with my design is that I was forced to use a route outside of /public to transform the image.
I really would have liked to be able to,
if my original image was,
/images/fred.jpg
to have done the below to transform it
/images/fred.jpg?h=50&w=200
but I was forced to
/resize/images/fred.jpg?h=50&w=200
as Oleg effectively has
Is there a way of getting a user defined route to intercept a file in /public?
Assuming that you're not serving up static files directly via e.g. nginx, then I think a before filter should be able to catch requests that would otherwise have been served straight out of the public dir... maybe something vaguely like: before sub { if (request->path =~ m{^/images}) { handle_resize(); } }; I'm not sure that params will have been parsed, though, if it's being treated as a static route. I think the way you've implemented it is quite probably a better option. -- David Precious ("bigpresh") http://www.preshweb.co.uk/ "Programming is like sex. One mistake and you have to support it for the rest of your life". (Michael Sinz)
On Thu, Jul 14, 2011 at 11:13 AM, Oleg A. Mamontov <oleg@mamontov.net> wrote:
Hi.
I have recently uploaded the new Dancer plugin for common task of images thumbnails creation: http://search.cpan.org/~lonerr/Dancer-Plugin-Thumbnail
It's probably offtopic for this list, but i hope to get some constructive criticism or new ideas from experienced Dancer developers.
I would appreciate any comments!
-- Cheers, Oleg A. Mamontov
mailto: oleg@mamontov.net
jabber: lonerr@charla.mamontov.net icq uin: 79-521-617 cell: +7-903-798-1352
_______________________________________________ Dancer-users mailing list Dancer-users@perldancer.org http://www.backup-manager.org/cgi-bin/listinfo/dancer-users
GD + Dancer, that sounds great. I hope I can make good use of it for my next project at work. :) Thanks. Will see how it works in the future.
On Thursday 14 July 2011 19:13:51 Oleg A. Mamontov wrote:
Hi.
I have recently uploaded the new Dancer plugin for common task of images thumbnails creation: http://search.cpan.org/~lonerr/Dancer-Plugin-Thumbnail
It's probably offtopic for this list, but i hope to get some constructive criticism or new ideas from experienced Dancer developers.
Certainly not off-topic, and looks useful - thanks for writing it! I can certainly forsee making use of it in future, nice work. -- David Precious ("bigpresh") http://www.preshweb.co.uk/ "Programming is like sex. One mistake and you have to support it for the rest of your life". (Michael Sinz)
On 07/14/2011 07:13 PM, Oleg A. Mamontov wrote:
Hi.
I have recently uploaded the new Dancer plugin for common task of images thumbnails creation: http://search.cpan.org/~lonerr/Dancer-Plugin-Thumbnail
It's probably offtopic for this list, but i hope to get some constructive criticism or new ideas from experienced Dancer developers.
I would appreciate any comments!
I wrote a simple image gallery a few weeks ago and was just considering pulling the image resizing bits out into a plugin. Looks like I don't have to now! Thanks, Dave... -- Dave Cross :: dave@dave.org.uk http://dave.org.uk/ @davorg
On Fri, Jul 15, 2011 at 4:10 AM, Dave Cross <dave@dave.org.uk> wrote:
On 07/14/2011 07:13 PM, Oleg A. Mamontov wrote:
Hi.
I have recently uploaded the new Dancer plugin for common task of images thumbnails creation: http://search.cpan.org/~lonerr/Dancer-Plugin-Thumbnail
It's probably offtopic for this list, but i hope to get some constructive criticism or new ideas from experienced Dancer developers.
I would appreciate any comments!
I wrote a simple image gallery a few weeks ago and was just considering pulling the image resizing bits out into a plugin. Looks like I don't have to now!
Is this image gallery open source? If so, please provide a link. -Naveed
Thanks,
Dave...
-- Dave Cross :: dave@dave.org.uk http://dave.org.uk/ @davorg _______________________________________________ Dancer-users mailing list Dancer-users@perldancer.org http://www.backup-manager.org/cgi-bin/listinfo/dancer-users
On 07/15/2011 10:04 AM, Naveed Massjouni wrote:
On Fri, Jul 15, 2011 at 4:10 AM, Dave Cross<dave@dave.org.uk> wrote:
I wrote a simple image gallery a few weeks ago and was just considering pulling the image resizing bits out into a plugin. Looks like I don't have to now!
Is this image gallery open source? If so, please provide a link.
It will be. Once I've moved all of my hard-coded site-specific stuff into configuration and split out any reusable code into plugins. It's not that high on my list of priorities currently, Give me a couple of weeks. Dave... -- Dave Cross :: dave@dave.org.uk http://dave.org.uk/ @davorg
participants (8)
-
ambs -
Carlos Ivan Sosa -
Dave Cross -
David Precious -
Naveed Massjouni -
Oleg A. Mamontov -
Stefan Hornburg (Racke) -
Stephen Fenwick-Paul