Welcome to Geeklog, Anonymous Friday, January 10 2025 @ 01:21 pm EST
Geeklog Forums
Image resizing not working.
I have been trying to get the automatic image resizing to work for 2 days now. I believe that I have everthing set up right. Yet when I upload a picture it uploads fullsize, and displays fullsize, and creates a link to the "_original" that is also fullsize. I look in the error.log file and it shows:
----------------------------------------------------------------------------------
Wed Nov 23 22:14:24 2005 - Debug: Max allowed width = 160, Image width = 2560
Wed Nov 23 22:14:24 2005 - Debug: Max allowed height = 120, Image height = 1920
Wed Nov 23 22:14:24 2005 - Debug: File, 100_0658.JPG has a width of 2560 and a height of 1920
Wed Nov 23 22:14:24 2005 - Debug: in _getImageDimensions I got a width of 2560, and a height of 1920
Wed Nov 23 22:14:24 2005 - Debug: Going to resize image to 160x120 using imagemagick
Wed Nov 23 22:14:24 2005 - Debug: Attempting to resize with this command (imagemagick): /usr/bin/mogrify -resize 160x120 "/var/www/html/jlog/images/articles/20051$
Wed Nov 23 22:14:24 2005 - Debug: Image, 100_0658.JPG was resized from 2560x1920 to 160x120
Wed Nov 23 22:14:24 2005 - Warning: File #2 on the HTML form was empty...ignoring it and continuing
Wed Nov 23 22:14:24 2005 - Warning: File #3 on the HTML form was empty...ignoring it and continuing
Wed Nov 23 22:14:24 2005 - Warning: File #4 on the HTML form was empty...ignoring it and continuing
Wed Nov 23 22:14:24 2005 - Warning: File #5 on the HTML form was empty...ignoring it and continuing
Wed Nov 23 22:22:57 2005 - Debug: File size for 100_0658.JPG is 531643 bytes
Wed Nov 23 22:22:57 2005 - Debug: File, 100_0658.JPG is of mime type image/jpeg and IS an image file.
Wed Nov 23 22:22:57 2005 - Debug: in _getImageDimensions I got a width of 2560, and a height of 1920
Wed Nov 23 22:22:57 2005 - Debug: Max allowed width = 160, Image width = 2560
Wed Nov 23 22:22:57 2005 - Debug: Max allowed height = 120, Image height = 1920
Wed Nov 23 22:22:57 2005 - Debug: File, 100_0658.JPG has a width of 2560 and a height of 1920
Wed Nov 23 22:22:57 2005 - Debug: File, 100_0658.JPG is of mime type image/jpeg and IS an image file.
Wed Nov 23 22:22:57 2005 - Debug: in _getImageDimensions I got a width of 2560, and a height of 1920
Wed Nov 23 22:22:57 2005 - Debug: Max allowed width = 160, Image width = 2560
Wed Nov 23 22:22:57 2005 - Debug: Max allowed height = 120, Image height = 1920
Wed Nov 23 22:22:57 2005 - Debug: File, 100_0658.JPG has a width of 2560 and a height of 1920
Wed Nov 23 22:22:57 2005 - Debug: in _getImageDimensions I got a width of 2560, and a height of 1920
Wed Nov 23 22:22:57 2005 - Debug: Going to resize image to 160x120 using imagemagick
Wed Nov 23 22:22:57 2005 - Debug: Attempting to resize with this command (imagemagick): /usr/bin/mogrify -resize 160x120 "/var/www/html/jlog/images/articles//20051123222223797_1.JPG" 2>&1
Wed Nov 23 22:22:57 2005 - Debug: Image, 100_0658.JPG was resized from 2560x1920 to 160x120
-----------------------------------------------------------------------------
So I think well let me try the command myself. So I:
apache_user$ /usr/bin/mogrify -resize 160x120 "/var/www/html/jlog/images/articles/20051123222223797_1.JPG" 2>&1
and wouldn't ya know it works! Ahhhhhh.
Here are my config.php variables:
$_CONF['image_lib'] = 'imagemagick'; // can be one of 'netpbm',
//'imagemagick', 'gdlib'
$_CONF['path_to_mogrify'] = '/usr/bin/mogrify';
// upload. Debug messages will be added to the error.log file.
$_CONF['debug_image_upload'] = true;
// When set to 1, Geeklog will keep the original, unscaled images and make
// the smaller image link to the unscaled image.
$_CONF['keep_unscaled_image'] = 1; // 1 = keep original images
// Story image settings
$_CONF['max_image_width'] = 160; // In pixels
$_CONF['max_image_height'] = 120; // In pixels
$_CONF['max_image_size'] = 1048576; // 1048576 = 1MB
// User photo settings
$_CONF['max_photo_width'] = 128; // In pixels
$_CONF['max_photo_height'] = 128; // In pixels
$_CONF['max_photo_size'] = 65536; // 65536 = 64KB
Can someone please tell me why my pictures are not being resized when they are uploaded from the submit story page? Before I give into temptation and blow the box up, then put it back together just so I can blow it up again. Thank you in advance, this is for my work. We use it as a Technical log and my manager wants this done yesterday so that we can upload screenshots of problems that we incur. Maybe I should let him figure it out. But I digress, can someone please help me.
----------------------------------------------------------------------------------
Wed Nov 23 22:14:24 2005 - Debug: Max allowed width = 160, Image width = 2560
Wed Nov 23 22:14:24 2005 - Debug: Max allowed height = 120, Image height = 1920
Wed Nov 23 22:14:24 2005 - Debug: File, 100_0658.JPG has a width of 2560 and a height of 1920
Wed Nov 23 22:14:24 2005 - Debug: in _getImageDimensions I got a width of 2560, and a height of 1920
Wed Nov 23 22:14:24 2005 - Debug: Going to resize image to 160x120 using imagemagick
Wed Nov 23 22:14:24 2005 - Debug: Attempting to resize with this command (imagemagick): /usr/bin/mogrify -resize 160x120 "/var/www/html/jlog/images/articles/20051$
Wed Nov 23 22:14:24 2005 - Debug: Image, 100_0658.JPG was resized from 2560x1920 to 160x120
Wed Nov 23 22:14:24 2005 - Warning: File #2 on the HTML form was empty...ignoring it and continuing
Wed Nov 23 22:14:24 2005 - Warning: File #3 on the HTML form was empty...ignoring it and continuing
Wed Nov 23 22:14:24 2005 - Warning: File #4 on the HTML form was empty...ignoring it and continuing
Wed Nov 23 22:14:24 2005 - Warning: File #5 on the HTML form was empty...ignoring it and continuing
Wed Nov 23 22:22:57 2005 - Debug: File size for 100_0658.JPG is 531643 bytes
Wed Nov 23 22:22:57 2005 - Debug: File, 100_0658.JPG is of mime type image/jpeg and IS an image file.
Wed Nov 23 22:22:57 2005 - Debug: in _getImageDimensions I got a width of 2560, and a height of 1920
Wed Nov 23 22:22:57 2005 - Debug: Max allowed width = 160, Image width = 2560
Wed Nov 23 22:22:57 2005 - Debug: Max allowed height = 120, Image height = 1920
Wed Nov 23 22:22:57 2005 - Debug: File, 100_0658.JPG has a width of 2560 and a height of 1920
Wed Nov 23 22:22:57 2005 - Debug: File, 100_0658.JPG is of mime type image/jpeg and IS an image file.
Wed Nov 23 22:22:57 2005 - Debug: in _getImageDimensions I got a width of 2560, and a height of 1920
Wed Nov 23 22:22:57 2005 - Debug: Max allowed width = 160, Image width = 2560
Wed Nov 23 22:22:57 2005 - Debug: Max allowed height = 120, Image height = 1920
Wed Nov 23 22:22:57 2005 - Debug: File, 100_0658.JPG has a width of 2560 and a height of 1920
Wed Nov 23 22:22:57 2005 - Debug: in _getImageDimensions I got a width of 2560, and a height of 1920
Wed Nov 23 22:22:57 2005 - Debug: Going to resize image to 160x120 using imagemagick
Wed Nov 23 22:22:57 2005 - Debug: Attempting to resize with this command (imagemagick): /usr/bin/mogrify -resize 160x120 "/var/www/html/jlog/images/articles//20051123222223797_1.JPG" 2>&1
Wed Nov 23 22:22:57 2005 - Debug: Image, 100_0658.JPG was resized from 2560x1920 to 160x120
-----------------------------------------------------------------------------
So I think well let me try the command myself. So I:
apache_user$ /usr/bin/mogrify -resize 160x120 "/var/www/html/jlog/images/articles/20051123222223797_1.JPG" 2>&1
and wouldn't ya know it works! Ahhhhhh.
Here are my config.php variables:
$_CONF['image_lib'] = 'imagemagick'; // can be one of 'netpbm',
//'imagemagick', 'gdlib'
$_CONF['path_to_mogrify'] = '/usr/bin/mogrify';
// upload. Debug messages will be added to the error.log file.
$_CONF['debug_image_upload'] = true;
// When set to 1, Geeklog will keep the original, unscaled images and make
// the smaller image link to the unscaled image.
$_CONF['keep_unscaled_image'] = 1; // 1 = keep original images
// Story image settings
$_CONF['max_image_width'] = 160; // In pixels
$_CONF['max_image_height'] = 120; // In pixels
$_CONF['max_image_size'] = 1048576; // 1048576 = 1MB
// User photo settings
$_CONF['max_photo_width'] = 128; // In pixels
$_CONF['max_photo_height'] = 128; // In pixels
$_CONF['max_photo_size'] = 65536; // 65536 = 64KB
Can someone please tell me why my pictures are not being resized when they are uploaded from the submit story page? Before I give into temptation and blow the box up, then put it back together just so I can blow it up again. Thank you in advance, this is for my work. We use it as a Technical log and my manager wants this done yesterday so that we can upload screenshots of problems that we incur. Maybe I should let him figure it out. But I digress, can someone please help me.
3
6
Quote
tokyoahead
Anonymous
I am not sure if the double slash in
Wed Nov 23 22:22:57 2005 - Debug: Attempting to resize with this command (imagemagick): /usr/bin/mogrify -resize 160x120 "/var/www/html/jlog/images/articles//20051123222223797_1.JPG" 2>&1
is doing something to it. you might want to check that your image path has the proper format and if it also works if you use that extra slash on the command line.
otherwise I would try netpbm, that works quite nicely here.
Oliver
Wed Nov 23 22:22:57 2005 - Debug: Attempting to resize with this command (imagemagick): /usr/bin/mogrify -resize 160x120 "/var/www/html/jlog/images/articles//20051123222223797_1.JPG" 2>&1
is doing something to it. you might want to check that your image path has the proper format and if it also works if you use that extra slash on the command line.
otherwise I would try netpbm, that works quite nicely here.
Oliver
6
4
Quote
All times are EST. The time is now 01:21 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content