Welcome to Geeklog, Anonymous Friday, April 19 2024 @ 02:38 pm EDT

Geeklog Forums

Resizing Images in Articles


Status: offline

samstone

Forum User
Full Member
Registered: 09/29/02
Posts: 820
After several months of using Geeklog, I still haven't yet figured out how to get my images resized when uploading with a story. I use ImageMagick, which works with Gallery, and 4images perfectly. My ImageMagick version is 5.5.5 upgraded from 5.5.2 which also didn't work. If I resize it offline, it loads without problem, therefore it is not the directory permission problem. I have read articles with similar problem, but there was no answer for them either. Please help. Sam
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
For starters it would help if you described what your actual problem is ... Did you set it up properly (in config.php)? Do you get any error messages? bye, Dirk
 Quote

Anonymous

Anonymous
Yes. It is set up properly in the config. $_CONF['image_lib'] = '/usr/local/bin/'; // can be netpbm, imagemagick $_CONF['path_to_mogrify'] = '/usr/local/bin/mogrify'; The error message is: Image, 024_23.jpg had trouble being resized Thanks, Sam
 Quote

Anonymous

Anonymous
image_lib should be the name 'imagemagick' or 'netpbm', not the path. I was confused by the decription above asking for the path and in the same time showing a path '/usr/local/bin' by default. So I ended up trying all kinds of paths with out success. Now I can exhale! Sam
 Quote

Status: offline

sardu

Forum User
Junior
Registered: 01/23/03
Posts: 17

Have you tried running mogrify on the command line manually? (make a copy of the image file and run mogrify on the copy)

Text Formatted Code

$ cp 024_23.jpg copy_024_23.jpg
$ mogrify -geometry 200x200 copy_024_23.jpg
 

Toss the original file on a webserver somewhere and post the URL, maybe its corrupted somehow (or has tagged data fields that imagemagick can't deal with). I've come across images (especially 'supposed' JPG/JFIF files) that imagemagick would have no problem with on 9 out of 10 machines... or on versions 5.x.2, 5.x.4, but not 5.x.3

---
Lucas Thompson, sardu@mac,com


Lucas Thompson, sardu@mac,com
 Quote

All times are EDT. The time is now 02:38 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