Welcome Guest, Not a member yet? Register   Sign In
DB design and file uploading

Ok...let's be more specific.

I want to upload images and store the data in a db.


-upload the image.
-check if it's portrait or landscape
-resize it to 315*420 / 420*315, if not already that size. This may need a crop as well, in case the proprtions are incorrect.
-create a thumbnail, 47*47, so this also needs a crop either before or after resizing (after, i should think, less CPU cycles?)
-put these two images in their directories, root/gallrey and root/gallery/thumbs
-put the data (name, portrait/landscape, location) in a db table.

The code in this thread looks like a good place to start, http://ellislab.com/forums/viewthread/79394/

Is the above sequence the best one? Any tips?



Messages In This Thread
DB design and file uploading - by El Forum - 07-16-2008, 12:27 PM
DB design and file uploading - by El Forum - 07-17-2008, 05:51 PM

Theme © iAndrew 2016 - Forum software by © MyBB