Hi guys,
I need to let a user upload an image on my /upload/post/ directory. There must be a restriction on the images to upload, at 1mb and no bigger than 2000px X 2000px.
but I also need a thumbnail created on my /upload/post/mthumb
All thumbs must have a width of 300, but with the height being relative to the width, and keep to its aspect ration (not losing proportion) .. Also at the best quality.
How do I do this. Now I've only learnt PHP in the past 2 weeks, BUT I know OOP, functions, vars, MySQL, and PHP basics. I also have VisualBasic experience. So its just this kind of stuff that im not to confident with.
I hope you can help me.
My file structure is like this:-
/ core
/ post
--| avatar
--| post
----| mthumb <---- where the thumbs should be saved
/ inc
--| phpthumb <---- installation folder
/ template
--| default <---- my pages are to upload, resize and show