This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
1
Features / Very cool Thumbnail generation...
« on July 7th, 2012, 02:25 PM »
While I've been waiting for you guys to finish Wedge, I've been struggling along with vbulletin 4.2. One of the many things they don't handle well is thumbnail generation, and I found a cool library called "Jcrop" that combines some jquery and php code to intuitively allow users to select an area of a photo to generate a thumbnail.
The code could also be used to resize and select an area of a photo to use as an avatar. Or for any other purpose where there is a size restriction and the user must decide what part of the image to show.
It's released under MIT's open source license, so I think it's free for you to use. Or at the very least, you maybe you'll find inspiration here. :P
Here's a link to "Deep Liquid's" website with the Jcrop code and demo: http://deepliquid.com/projects/Jcrop/demos.php?demo=live_crop
I know that the same effect can be achieved by uploading a custom thumbnail at the same time the photo is being uploaded, but Jcrop is a LOT easier, and would allow the wedge admin to specify the size and shape of the thumbnails.
dwx
The code could also be used to resize and select an area of a photo to use as an avatar. Or for any other purpose where there is a size restriction and the user must decide what part of the image to show.
It's released under MIT's open source license, so I think it's free for you to use. Or at the very least, you maybe you'll find inspiration here. :P
Here's a link to "Deep Liquid's" website with the Jcrop code and demo: http://deepliquid.com/projects/Jcrop/demos.php?demo=live_crop
I know that the same effect can be achieved by uploading a custom thumbnail at the same time the photo is being uploaded, but Jcrop is a LOT easier, and would allow the wedge admin to specify the size and shape of the thumbnails.
dwx