Welcome Guest, Not a member yet? Register   Sign In
Image Manipulation Class question
#3

[eluser]Dam1an[/eluser]
If you want to make a thumbnail, why are you cropping it instead if just scaling?
If you want the middle 140x140 of any size image all you need to do is
- Get the width and height from the database (which you stored when the image was uploaded)
- Do (height - 140) / 2 for the y axis crop
- Do (width - 140) / 2 for the x axis crop
- Do the rest as normal

Or am I totally missing something (having never used the IMC, quite probably)


Messages In This Thread
Image Manipulation Class question - by El Forum - 05-18-2009, 04:09 AM
Image Manipulation Class question - by El Forum - 05-18-2009, 04:16 AM
Image Manipulation Class question - by El Forum - 05-18-2009, 04:18 AM
Image Manipulation Class question - by El Forum - 05-18-2009, 04:21 AM
Image Manipulation Class question - by El Forum - 05-18-2009, 04:24 AM
Image Manipulation Class question - by El Forum - 05-18-2009, 04:28 AM
Image Manipulation Class question - by El Forum - 05-18-2009, 04:47 AM
Image Manipulation Class question - by El Forum - 05-18-2009, 05:19 AM
Image Manipulation Class question - by El Forum - 05-18-2009, 05:21 AM
Image Manipulation Class question - by El Forum - 05-18-2009, 05:25 AM
Image Manipulation Class question - by El Forum - 05-18-2009, 05:27 AM
Image Manipulation Class question - by El Forum - 06-02-2009, 09:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB