WebFaction
Community site: login faq

Is there a solution for webfaction that would allow me to create a thumbnail or jpg from a url? I've been looking around but several want money for each thumbnail and they're slow.

asked 25 Aug '11, 01:29

Daniel Savage
137
accept rate: 0%


There is no standard solution but you can use webkit2png or wkhtmltopdf to do this.

The installation instructions for both are available here:
http://forum.webfaction.com/viewtopic.php?id=3119

permanent link

answered 25 Aug '11, 01:36

neeravk
1.5k3412
accept rate: 41%

Your question is rather vague.

If you have static images then it may be simpler to use a bulk image re-sizer. There are some online that you can use, light image re-sizer looks good. Back in college I scripted one for the same purpose in Python using the PIL.

Now if you want to do something like this:

\image\large\one.jpg = regular image
\image\thumb\one.jpg = thumb nail

where one.jpg is some image in some folder that your site serves dynamically, then you should look into mod rewrite. Then you can pass in the size and image name into the same page that will return the correct one based on the request.

Frankly, if more than two people are going to request a thumb nail be generated it would be more efficient from a process point of view to re-size them your self instead of every time they view the thumb nail. You could keep them in a directory called thumbs off the same parent directory you keep the regular images. You wouldn't even need to use anything besides FTP and an image re-sizer.

permanent link

answered 25 Aug '11, 22:06

JustSmith
123
accept rate: 0%

edited 25 Aug '11, 22:08

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×32
×2
×2

question asked: 25 Aug '11, 01:29

question was seen: 3,328 times

last updated: 25 Aug '11, 22:08

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM