Website thumbnail generator with CarrierWave

126 views
Skip to first unread message

Itamaryu

unread,
May 13, 2012, 11:30:41 AM5/13/12
to carrierwave
Hi guys,
I'm looking for a way to create website thumbnails using CarrierWave,
any suggestions how can I do it ?
Is CarrierWave the right solution for it ?

Jacob Tjørnholm

unread,
May 13, 2012, 1:49:04 PM5/13/12
to carri...@googlegroups.com
Hi, 

Probably not by itself. Carrierwave handles the uploading and processing of files, so given a full size screenshot of a website, you could easily create a thumbnail version. 

If you need to create a screenshot from a URL, you might want to look at something like wkhtmltopdf. This would obviously produce a PDF which you could then convert to an image file (maybe using ImageMagick? I'm not sure). 

/Jacob



--
You received this message because you are subscribed to the Google Groups "carrierwave" group.
To post to this group, send email to carri...@googlegroups.com.
To unsubscribe from this group, send email to carrierwave...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/carrierwave?hl=en.


Itamaryu

unread,
May 14, 2012, 3:22:56 AM5/14/12
to carri...@googlegroups.com
Thanks Jacob,
I'll try using one the the online tools for the screenshots and then resize it with Carrierwave.
The Pdf option seems to be too "long" (image => pdf => image => thumbnail).

How can I connect between one the online tools, i.e url2png.com , and CarrierWave ?

Itamar



On Sunday, May 13, 2012 8:49:04 PM UTC+3, Jacob Tjørnholm wrote:
Hi, 

Probably not by itself. Carrierwave handles the uploading and processing of files, so given a full size screenshot of a website, you could easily create a thumbnail version. 

If you need to create a screenshot from a URL, you might want to look at something like wkhtmltopdf. This would obviously produce a PDF which you could then convert to an image file (maybe using ImageMagick? I'm not sure). 

/Jacob

On Sun, May 13, 2012 at 5:30 PM, Itamaryu <yun...@gmail.com> wrote:
Hi guys,
I'm looking for a way to create website thumbnails using CarrierWave,
any suggestions how can I do it ?
Is CarrierWave the right solution for it ?

--
You received this message because you are subscribed to the Google Groups "carrierwave" group.
To post to this group, send email to carri...@googlegroups.com.
To unsubscribe from this group, send email to carrierwave+unsubscribe@googlegroups.com.

Jacob Tjørnholm

unread,
May 14, 2012, 6:57:51 AM5/14/12
to carri...@googlegroups.com
I see that url2png creates a URL for the screenshot, for example: http://goo.gl/xRd5v

Carrierwave supports uploading via a URL, see https://github.com/jnicklas/carrierwave/#uploading-files-from-a-remote-location

So you should be able to combine the two and add thumbnail processing (https://github.com/jnicklas/carrierwave/#adding-versions ). 

/Jacob


To view this discussion on the web visit https://groups.google.com/d/msg/carrierwave/-/MwiJYRo64v0J.

To post to this group, send email to carri...@googlegroups.com.
To unsubscribe from this group, send email to carrierwave...@googlegroups.com.

Itamaryu

unread,
May 15, 2012, 3:16:22 AM5/15/12
to carri...@googlegroups.com
Thanks Jacob!
I think I'll go this way. W'll keep you updated when it's done.
Reply all
Reply to author
Forward
0 new messages