EllisLab text mark
Advanced Search
     
Gallery problem - generating diferent size pictures from one?
Posted: 06 July 2007 12:21 AM   [ Ignore ]
Joined: 2007-05-06
32 posts

I am making gallery for my tuning portal and I need some help.

Idea is that every register user can build and maintain there own gallery. Gallery is based on three levels and four album container. It’s look something like this [mark -> model -> album > album content] or [BMW -> E30 - 318i ->photos].

So problem is that I need to generate from one uploaded photo 3 deferent size [thumb, medium and full size]. My idea is to build some function($photo_id) that will temporarily generate photo from original. Basically idea is to have just one original photo on server, and from that one just generating others.

can anybody help me whit some idea how to start that function? or some example will be nice too.

 Signature 

TuningTube » First CI tuning portal!

 
Posted: 06 July 2007 12:32 AM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Joined: 2007-07-05
11 posts

I don’t think generating thumbnails in real-time is a good idea. It could be really slow, especially when you’re displaying a page with multiple thumbnails that each have to be generated.

I would rather cache the thumbnails and medium-size images.

 
Posted: 06 July 2007 02:10 AM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Joined: 2007-05-06
32 posts

Tnx for fast reply!

But how do you mean caching images? Like making new one from the original photo (whit deferent size) or something else?

 Signature 

TuningTube » First CI tuning portal!

 
Posted: 06 July 2007 02:41 AM   [ Ignore ]   [ # 3 ]   [ Rating: 0 ]
Avatar
Joined: 2006-06-12
47 posts
flash_back - 06 July 2007 06:10 AM

Tnx for fast reply!

But how do you mean caching images? Like making new one from the original photo (whit deferent size) or something else?

Of course. Well, ‘caching’ isn’t exactly the term here. But creating the thumbs when uploading the pics.

 
Posted: 06 July 2007 11:35 AM   [ Ignore ]   [ # 4 ]   [ Rating: 0 ]
Joined: 2007-06-21
94 posts

I’m using phpThumb

 Signature 

everything about Moldova

 
Posted: 06 July 2007 06:56 PM   [ Ignore ]   [ # 5 ]   [ Rating: 0 ]
Joined: 2007-05-06
32 posts

I will try it! TNX smile

 Signature 

TuningTube » First CI tuning portal!

 
Posted: 06 July 2007 07:53 PM   [ Ignore ]   [ # 6 ]   [ Rating: 0 ]
Joined: 2007-06-22
26 posts

just make the thumbs or whatever images, and store them along with the originals(if you’re keeping the originals).

the way i see it is; storage is cheap, bandwidth and CPU are expensive.