Inferno wrote:please download the latest version from github, new resize class is imported, also make sure you add this to your configuration:
$_config['new_resize_class'] = true;
Antoher strange problem...
First time everything was ok, but then I had to change something and I deleted all images and uploaded them again. I took your default config and changed the size of the thumbs to 200x120 and the pic-width to 1024.
Code: Select all
$_config['divepics_preview'] = true;
/**
* Enable resizing of the uploaded pictures by GD
* If set to false, full size images will be shown and the
* thumbnails will be generated each time (cpu usage)
*/
$_config['enable_resize'] = true;
/**
* Set this to true to use the new resize class from http://www.verot.net/php_class_upload.htm
* Not fully tested, so this option is here temporarly
*/
$_config['new_resize_class'] = true;
/**
* Max filesize of images which are resized, this setting is depending on your server
* and php settings
*/
$_config['max_resize_size'] = 1812000;
/**
* Set the maximum width and height of the thumbnails, which are created automaticly
* Usually a 4:3 ratio, e.g. 100:75, 120:100
* Width and height are set in px
*/
$_config['thumb-width'] = 120;
$_config['thumb-height'] = 100;
/**
* Set the maximum width of the pictures in the gallery
* Width is set in px
*/
$_config['pic-width'] = 1024;
/**
* get exif data from the images
*/
$_config["get_exif_data"] = true;
If I then access the website --> Dive Gallery, the image-tool tries to resize the original images to a layout of 200x150...
Due to the fact that the image-tool doesnt have the rights to overwrite the original files it is running in a loop.
Code: Select all
Deprecated: Assigning the return value of new by reference is deprecated in /var/www/localhost/htdocs/phpdivinglog/includes/pear/Event/Dispatcher.php on line 249
system information
- class version : 0.31
- operating system : Linux
- PHP version : 5.3.14-pl0-gentoo
- GD version : 2.0.34
- supported image types : png jpg gif bmp
- open_basedir : no restriction
- upload_max_filesize : 512M (536870912 bytes)
- language : en_GB
source is a local file /var/www/localhost/htdocs/phpdivinglog/images/pictures/IMG_0111.JPG
- local file name OK
determining MIME type
- Checking MIME type with Fileinfo PECL extension
MAGIC path defaults to /usr/share/file/magic
Fileinfo PECL extension failed (finfo_open)
- Checking MIME type with UNIX file() command
MIME type detected as image/jpeg; charset=binary by UNIX file() command
- MIME validated as image/jpeg
source variables
- You can use all these before calling process()
file_src_name : IMG_0111.JPG
file_src_name_body : IMG_0111
file_src_name_ext : JPG
file_src_pathname : /var/www/localhost/htdocs/phpdivinglog/images/pictures/IMG_0111.JPG
file_src_mime : image/jpeg
file_src_size : 1470878 (max= 536870912)
file_src_error : 0
- source file is an image
image_src_x : 3648
image_src_y : 2736
image_src_pixels : 9980928
image_src_type : jpg
image_src_bits : 8
process file to /var/www/localhost/htdocs/phpdivinglog/images/pictures/
- file size OK
- file mime OK : image/jpeg
- file name safe format
- destination variables
file_dst_path : /var/www/localhost/htdocs/phpdivinglog/images/pictures/
file_dst_name_body : IMG_0111
file_dst_name_ext : JPG
- no auto_rename if same filename exists
- destination file details
file_dst_name : IMG_0111.JPG
file_dst_pathname : /var/www/localhost/htdocs/phpdivinglog/images/pictures/IMG_0111.JPG
- no overwrite checking
- image resizing or conversion wanted
- source image is JPEG
- setting destination file type to jpg
- resizing...
check x/y sizes
resized image object created
image_src_x y : 3648 x 2736
image_dst_x y : 200 x 150
- converting...
fills in transparency with default color
- saving image...
- error: No JPEG create support.
error : No JPEG create support.
But if I access the images via a logbook entry, the images are shown correctly: Thumbs, resized images and full size.