Welcome to Geeklog, Anonymous Friday, April 19 2024 @ 12:04 am EDT

Geeklog Forums

image size question


sam

Anonymous
Am i correct in thinking that GL should resize story images to the sizes stated in config.php if I have image magic installed, if so it's not working for me.

Imagemagic works fine with gallery
I am using win2000 server with apache

config.php
Text Formatted Code
// If you set $_CONF['image_lib'] below, you must supply a path for the library
// you will use.  Setting this also assumes that if a photo is uploaded that is
// too big either by the image sizes below or by overriding them using the
// upload object then the library you choose will attempt to resize the image.
// Leaving this value empty disables this feature
$_CONF['imagemagick'] = 'imagemagick'; // can be one of 'netpbm', 'imagemagick', 'gdlib'

// If you set image_lib to imagemagick give this path otherwise comment it out
// NOTE: you will need a fairly recent version of ImageMagick for this to work.
// ImageMagick version 5.4.9 (or newer) is recommended.
$_CONF['path_to_mogrify']       = 'D:/ImageMagick-6.1.2-Q16/';


// 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']   = 0; // 1 = keep original images

// Story image settings
$_CONF['max_image_width']       = 640;  // In pixels
$_CONF['max_image_height']      = 480;  // In pixels
$_CONF['max_image_size']        = 7340032; // 1048576 = 1MB 7340032=7mb

 
 Quote

Status: offline

jhk

Forum User
Chatty
Registered: 07/13/02
Posts: 57
caffeinated
Text Formatted Code
$_CONF['imagemagick'] = 'imagemagick'; // can be one of 'netpbm', 'imagemagick', 'gdlib'
 

should be changed to
Text Formatted Code
$_CONF['image_lib'] = 'imagemagick'; // can be one of 'netpbm', 'imagemagick', 'gdlib'
 
 Quote

sam

Anonymous
thanks for your help.
ok it seems to be resizing the dimensions but not the file size.
error is
File Upload Errors
File, aust_colour_water_1.jpg, is bigger than the 1048576 byte limit

I thought GL should resize to the 1048576 limit?
 Quote

Status: offline

jhk

Forum User
Chatty
Registered: 07/13/02
Posts: 57
Is that a Geeklog error or a server error?

Search this forum for php.ini and the file upload settings. You may have a problem with the server configuration.
 Quote

sam

Anonymous
Have already set php and apache to take larger files than the image that is giving me probs.
Also gallery is ok with this image file so looks like GL error.
 Quote

sam

Anonymous
also the file size in the error message is the size limit set in GL/config.php
 Quote

sam

Anonymous
Don't want to beg, but this is the last problem I have and i am anxious to get my site online.
HELP please
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
$_CONF['max_image_size'] is a "hard" limit - if you try to upload a file larger than that, it will be rejected.

bye, Dirk
 Quote

sam

Anonymous
Cheers Dirk
 Quote

All times are EDT. The time is now 12:04 am.

  • 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