Help : i want to convert Template into Thumbnail

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Ajay Patel
Forum Newbie
Posts: 7
Joined: Fri Oct 03, 2008 1:16 am

Help : i want to convert Template into Thumbnail

Post by Ajay Patel »

Hi All


I have 1 Template n i want to make thumbnail of that template could u suggest me or give me PHP code so i can implement that in my project.

Thanks All
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: Help : i want to convert Template into Thumbnail

Post by onion2k »

Why do new users never give us enough information to answer their questions? :banghead:

What sort of templates? Photoshop templates? Smarty templates? HTML templates?
What sort of thumbnails? Images? HTML?
What research have you done so far? Do you have any ideas yet?
Ajay Patel
Forum Newbie
Posts: 7
Joined: Fri Oct 03, 2008 1:16 am

Re: Help : i want to convert Template into Thumbnail

Post by Ajay Patel »

i have used HTML template

i don't have any idea about how to create Thumbnail
User avatar
papa
Forum Regular
Posts: 958
Joined: Wed Aug 27, 2008 3:36 am
Location: Sweden/Sthlm

Re: Help : i want to convert Template into Thumbnail

Post by papa »

Show us some code and we might be able to help.
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: Help : i want to convert Template into Thumbnail

Post by onion2k »

Ajay Patel wrote:i have used HTML template

i don't have any idea about how to create Thumbnail
You're still not really giving us enough information, but I'm going to take a guess that you mean a thumbnail image previewing the completed HTML template.

Your best bet is to do it manually. Load the page in a browser, take a screenshot, and then either resize it using Photoshop on your PC or upload it to a resizing script on the server. Writing a script to automatically generate an image from a page of HTML is next to impossible with PHP. It can be done, but the code is so fragile and depends on such a specific set up that there's really no way anyone on a forum will be able to help with it.

Alternatively, if your HTML is publicly accessible, you could try a service like http://www.shrinktheweb.com/
Ajay Patel
Forum Newbie
Posts: 7
Joined: Fri Oct 03, 2008 1:16 am

Re: Help : i want to convert Template into Thumbnail

Post by Ajay Patel »

i have just HTML template Page and in that i add contents dynamically in that template

i want Thumbnail of that Template page which include my contents.

means i can't take snap shot and create thumbnail b'coz my template data is dynamic.
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: Help : i want to convert Template into Thumbnail

Post by onion2k »

Ajay Patel wrote:i have just HTML template Page and in that i add contents dynamically in that template

i want Thumbnail of that Template page which include my contents.

means i can't take snap shot and create thumbnail b'coz my template data is dynamic.
Seriously, trying to do this automatically with PHP is virtually impossible.

Can't the person who modifies the content update the thumbnail at the same time?
Post Reply