vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Image Gallery v1.0 (https://vborg.vbsupport.ru/showthread.php?t=21602)

Sarge 07-02-2001 11:51 AM

/usr/X11R6/bin/convert

Is my path....

It is right in the options.. still looking at broken thumbd.

HELP!

mojotim 07-02-2001 12:19 PM

Quote:

Originally posted by mojotim
Telnet in and go to a directory where you have some images.

Then type this:

convert -geometry 120x120 filename.jpg new_filename.jpg

this will create a thumb 120x120 of filename.jpg


You say you have ImageMagick but no thumbs to prove it.:confused: Try to do this telnet operation and see if it works.

Zamtil 07-02-2001 03:14 PM

Please check to see if you're running in safe mode.

An easy way to do this is to create a file called phpinfo.php. It should contain these 3 lines:

<?php
phpinfo();
?>

Put it in your forums directory and point your web browser at it. If you search for 'safe_mode', you should find 2 lines. safe_mode and safe_mode_exec_dir. If safe_mode is on, then safe_mode_exec_dir HAS to contain your a copy of convert. If you don't have shell access/admin access to your server, I doubt you will be able to make this change.

Sarge 07-02-2001 03:51 PM

safe_mode
Off Off

http://www.dlrarmy.com/forums/phpinfo.php

TechTalk 07-02-2001 06:15 PM

Safe mode off/off here too and images still not making it into the table.

http://www.glidetech.com/phpinfo.php

Zamtil 07-02-2001 06:39 PM

Quote:

Originally posted by TechTalk
Safe mode off/off here too and images still not making it into the table.

Is the filedata field in the thumb table blank? Trying to figure out if the error is in making the thumbs or just displaying them.

You can also try remarking out this line in functions.php:

unlink($thumbname);

Just put a // at the start of the line.

Then make a dumby post, with a BMP/JPG/GIF attachment. If ImageMagick part is working, it'll create a file:
/tmppath/th_[randomstuff].

/tmppath is most likely /tmp, but may vary.

TechTalk 07-02-2001 06:49 PM

My problem is with it being added to the DB. Looking at it thru phpmyadmin there are no records there.

I guess I will try the thing you mentioned above, although im not sure what difference that will make

~Chris

TechTalk 07-02-2001 06:56 PM

OK just tried that. The th_ files are showing up each time i post an image. They are all 0kb though :confused:

TechTalk 07-02-2001 06:59 PM

Another note. Running the gallerymakethumbs.php file also puts a temp file in the tmp directory for each attachment i have (all 0KB) but still nothing in the DB

~Chris

Zamtil 07-02-2001 07:06 PM

Quote:

Originally posted by TechTalk
Another note. Running the gallerymakethumbs.php file also puts a temp file in the tmp directory for each attachment i have (all 0KB) but still nothing in the DB

~Chris

Ok, what version of ImageMagick do you have installed? If it's RedHat, should be able to just: rpm -q ImageMagick at the command prompt.

If it's older then 5.3.3-2, let's try simplifying your convert statment. In functions.php, find this line:

PHP Code:

system("$galleryconvert -geometry '160x120>' $path -flatten -quality '75' JPEG:$thumbname"); 

and change it to
PHP Code:

system("$galleryconvert -geometry '160x120>' $path -quality '75' JPEG:$thumbname"); 

The -flatten parameter "flattens" out animated GIFs. Otherwise, convert tries to make a JPG for each frame of the GIF. 10 frames = 10 files, makes a real mess in the /tmp directory.


All times are GMT. The time now is 04:18 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01116 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete