phpthumb

how to automatically copy an entire directory as thumbnails using phpthumb (or some other library)

狂风中的少年 提交于 2019-12-25 08:01:01
问题 I would like all images dropped in a directory to be copied into a separate directory as thumbnails that i can then view on my site. Right now i'm researching phpthumb, but have also downloaded wideimage and zen photo. Thanks if you can find an exact duplicate to this, near matches may also be helpful. Here is the script that only copies a single files: require_once '../ThumbLib.inc.php'; //include the thumb library $thumb = PhpThumbFactory::create('test.jpg'); //create a new image from the

How do you make thumbnails on upload with phpthumb?

拈花ヽ惹草 提交于 2019-12-20 05:04:16
问题 I'm having a very problematic error with phpthumb: http://phpthumb.gxdlabs.com/ So basically, I have a form which uploads a profile picture. The uploading seems to work because it uploads the image in the directory. The problem is that it doesn't generate the thumbnails but I'm sure that all the variables and names are correct. It gives me the following error. Specifically 'Image file not found': Fatal error: Uncaught exception 'Exception' with message 'Image file not found: ����' in {PATH}

How do you make thumbnails on upload with phpthumb?

末鹿安然 提交于 2019-12-20 05:03:58
问题 I'm having a very problematic error with phpthumb: http://phpthumb.gxdlabs.com/ So basically, I have a form which uploads a profile picture. The uploading seems to work because it uploads the image in the directory. The problem is that it doesn't generate the thumbnails but I'm sure that all the variables and names are correct. It gives me the following error. Specifically 'Image file not found': Fatal error: Uncaught exception 'Exception' with message 'Image file not found: ����' in {PATH}

integrating phpthumb in zend framework

回眸只為那壹抹淺笑 提交于 2019-12-14 03:34:54
问题 Is there a easy way to integrate phpthumb in zend framework ? Please help me with sample code if possible, thanks 回答1: application/Bootstrap.php protected function _initAutoload() { $autoloader = Zend_Loader_Autoloader::getInstance(); $autoloader->registerNamespace('PhpThumb_'); return $autoloader; } application/configs/application.ini [production] includePaths.library = APPLICATION_PATH "/../library" put files in library --PhpThumb 回答2: My answer is based on this answer by David Weinraub as

Jquery; Chrome Image Width and Height = 0 for new Image()

僤鯓⒐⒋嵵緔 提交于 2019-12-12 16:04:50
问题 Im having trouble getting Chrome to recognize an Image width or height after the DOM has loaded. The Image is dynamically loaded through phpThumb script (which resizes the image). If I take away the dynamic url and just replace it with the Image's direct url I get no issues and everything works in Chrome but with the dynamic url, chrome doesn't seem to be able to calculate the image width or height. Anyone have any experience with this? Its doing my head in. The code in question is : var