dezkit Posted October 30, 2008 Share Posted October 30, 2008 Can somebody give me some advice on how to get started? I am greatly appreciated Link to comment https://forums.phpfreaks.com/topic/130669-php-upload-original-picture-thumbnailed-and-mysql-entries/ Share on other sites More sharing options...
maxudaskin Posted October 30, 2008 Share Posted October 30, 2008 Personally, I would upload the image with a unique name to a predefined folder, insert the text data into the database and for the thumbnail: Set maximum dimensions, eg. 500px by 500px Find the quotient of the side that is greater in difference to the maximum (side/difference) (when the side is longer than the maximum) eg. 750px by 600px would be 1.5 Divide both sides by the quotient. 750/1.5=500, 600/1.5=400 That would be the thumbnail size. Link to comment https://forums.phpfreaks.com/topic/130669-php-upload-original-picture-thumbnailed-and-mysql-entries/#findComment-678063 Share on other sites More sharing options...
dezkit Posted October 30, 2008 Author Share Posted October 30, 2008 Oh thanks! But does anybody know how do I convert any size picture into a 83px × 60px picture? No stretches though, the resolution has to stay the same, just different size. Link to comment https://forums.phpfreaks.com/topic/130669-php-upload-original-picture-thumbnailed-and-mysql-entries/#findComment-678105 Share on other sites More sharing options...
dezkit Posted October 30, 2008 Author Share Posted October 30, 2008 bumping Link to comment https://forums.phpfreaks.com/topic/130669-php-upload-original-picture-thumbnailed-and-mysql-entries/#findComment-678179 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.