Welcome to Geeklog, Anonymous Tuesday, April 16 2024 @ 07:50 am EDT

Geeklog Forums

Media Gallery Not displaying thumbnail


Mike Stewart

Anonymous
Media Gallery admin 1.5 on Geeklog 1.4 on a recent install. Image uploads but the thumbnail down not view. Instead it displays the /mediagallery/mediaobjects/missing.png image as a place holder. Here is an excerpt below on the error log output. Help please. THanks
Mike


07/07/07 19:09:12 - MG Upload: Entering MG_getFile()
07/07/07 19:09:12 - MG Upload: Filename to process: C:\WINDOWS\TEMP\php182.tmp
07/07/07 19:09:13 - MG Upload: getID3 analyzing file: C:\WINDOWS\TEMP\php182.tmp
07/07/07 19:09:13 - MG Upload: getID3 found mime_type: image/jpeg
07/07/07 19:09:13 - MG Upload: found mime type of jpg
07/07/07 19:09:13 - MG Upload: PHP detected mime type is : image/pjpeg
07/07/07 19:09:13 - MG Upload: Stored filename is : 2_nitegate.jpg
07/07/07 19:09:13 - MG Upload: Mime Type: image/jpeg
07/07/07 19:09:13 - MG Upload: About to move/copy file
07/07/07 19:09:13 - MG Upload: Calling MG_convertImage()
07/07/07 19:09:13 - MG Upload: Entering MG_convertImage()
07/07/07 19:09:13 - MG Upload: Creating thumbnail image
07/07/07 19:09:13 - MG Upload: Converting using ImageMagick src = c:/Inetpub/tta/public_html/mediagallery/mediaobjects/orig/2/2_nitegate.jpg mimetype = image/jpeg
07/07/07 19:09:13 - MG Upload: Executing: "c:/imagemagick/convert" -verbose -flatten -quality 85 -size 200x200 c:/Inetpub/tta/public_html/mediagallery/mediaobjects/orig/2/2_nitegate.jpg -geometry 200x200 +profile "*" c:/Inetpub/tta/public_html/mediagallery/mediaobjects/tn/2/2_nitegate.jpg
07/07/07 19:09:14 - MG Upload: Verbose Command Output
07/07/07 19:09:14 - MG Upload: Entering MG_createDisplay()
07/07/07 19:09:14 - MG Upload: Converting using ImageMagick src = c:/Inetpub/tta/public_html/mediagallery/mediaobjects/orig/2/2_nitegate.jpg mimetype = image/jpeg
07/07/07 19:09:14 - MG Upload: Entering MG_processOriginal()
07/07/07 19:09:14 - MG Upload: Building SQL and preparing to enter database
07/07/07 19:09:14 - MG Upload: Inserting media record into mg_media
07/07/07 19:09:14 - MG Upload: Updating Album information
07/07/07 19:09:14 - MG Upload: Setting album cover filename to 2_nitegate
07/07/07 19:09:14 - MG Upload: Successfully uploaded a media object
 Quote

Status: offline

mevans

Forum User
Full Member
Registered: 02/08/04
Posts: 393
Location:Texas
Mike,

Let me ask a few more questions and see if we can track down the problem.

First, it looks like you running on Windows system, shouldn't be a problem, but let's make sure that the permissions are set properly on the mediagallery/mediaobjects/tn/* directories.

We know the thumbnail is not displaying, but what happens when you click on one of the missing thumbnails, does the display image show OK? If it does, that is good, it means that ImageMagick is working OK.

One of the issues I've seen in the past is that on some Win servers, I cannot trap any errors when calling ImageMagick, so Media Gallery thinks everything worked OK when in reality it didn't.

If the other images are OK, my first place to look would be the tn/ directories, I'm willing to bet there may be a permission issue.

Let me know if the others are OK and we'll go from there.

Thanks!
Mark
 Quote

Mike

Anonymous
Thanks for the very quick response.
Yes if I click on the missing thumbnail image, the image displays properly.
I checked the C:\Inetpub\tta\public_html\mediagallery\mediaobjects\tn directory and the webserver users has read write list and execute to that directory and all children.

Here is the URL for you to view.
http://www.tripletreeaerodrome.com/


Next thought?
MIke


 Quote

Status: offline

mevans

Forum User
Full Member
Registered: 02/08/04
Posts: 393
Location:Texas
Mike,

This is actually a good thing that the others are displaying properly, so we just have an issue with the thumbnail creation. But, now that I look a little closer, we are not actually running ImageMagick to create the display image because the size is already the same or smaller than the size required by the album, so MG is just making a copy of the original. So, we may actually still have a problem running ImageMagick.

Do you have access to the server where you can run a command at the prompt? If you do, could you run the following command tell me the output:

Text Formatted Code

c:/imagemagick/convert" -verbose -flatten -quality 85 -size 200x200 c:/Inetpub/tta/public_html/mediagallery/mediaobjects/orig/2/2_nitegate.jpg -geometry 200x200 +profile "*" c:/Inetpub/tta/public_html/mediagallery/mediaobjects/tn/2/2_nitegate.jpg
 


This should all be one line...

I want to see if the command will run locally, if it does, without error, the next area to look at is to make sure you have enough memory setup for the process. My default, PHP gives you 8mb of memory per process, we need at least 32mb if not a little more to run the graphic converters, etc.

Let's take a look at your phpinfo() page (Admins Only -> Media Gallery -> Utilities -> PHP Information). We are looking for the memory_limit setting.

Thanks for working through this with me, we'll get it figured out.

Thanks!
Mark
 Quote

Status: offline

mstewart

Forum User
Newbie
Registered: 07/09/07
Posts: 13
Quote by: mevans

Mike,

This is actually a good thing that the others are displaying properly, so we just have an issue with the thumbnail creation. But, now that I look a little closer, we are not actually running ImageMagick to create the display image because the size is already the same or smaller than the size required by the album, so MG is just making a copy of the original. So, we may actually still have a problem running ImageMagick.

Do you have access to the server where you can run a command at the prompt? If you do, could you run the following command tell me the output:

Text Formatted Code

c:/imagemagick/convert" -verbose -flatten -quality 85 -size 200x200 c:/Inetpub/tta/public_html/mediagallery/mediaobjects/orig/2/2_nitegate.jpg -geometry 200x200 +profile "*" c:/Inetpub/tta/public_html/mediagallery/mediaobjects/tn/2/2_nitegate.jpg
 


This should all be one line...

I want to see if the command will run locally, if it does, without error, the next area to look at is to make sure you have enough memory setup for the process. My default, PHP gives you 8mb of memory per process, we need at least 32mb if not a little more to run the graphic converters, etc.

Let's take a look at your phpinfo() page (Admins Only -> Media Gallery -> Utilities -> PHP Information). We are looking for the memory_limit setting.

Thanks for working through this with me, we'll get it figured out.

Thanks!
Mark




I ran this command
convert -verbose -flatten -quality 85 -size 200x200 c:\Inetpub\tta\public_html\mediagallery\mediaobjects\orig\2\2_nitegate.jpg -geometry 200x200 +profile "*" c:\Inetpub\tta\public_html\mediagallery\mediaobjects\tn\2\2_nitegate.jpg

I had to remove the " you had after convert. I think it was a typo on your part.
The response I got back was no decode delegate for this image format c:\Inetpub\tta\public_html\mediagallery\mediaobjects\tn\2\2_nitegate.jpg

Memory limit setting is 500M
Next?

Mike
 Quote

Status: offline

mevans

Forum User
Full Member
Registered: 02/08/04
Posts: 393
Location:Texas
Mike,

OK, this is getting us closer. I'm not sure where you got your ImageMagick binaries, but I do know that there have been some problems with ImageMagick around version 6.1.0 on win32.

The later releases seem to work pretty well. You might try upgrading your ImageMagick install, the URL I use for my Win32 environments is:

http://www.imagemagick.org/script/binary-releases.php#windows

Either the dll or static version should be fine.

Give this a try and let's see if that gets you going.

Thanks!
Mark
 Quote

Status: offline

mstewart

Forum User
Newbie
Registered: 07/09/07
Posts: 13
Quote by: mevans

Mike,

OK, this is getting us closer. I'm not sure where you got your ImageMagick binaries, but I do know that there have been some problems with ImageMagick around version 6.1.0 on win32.

The later releases seem to work pretty well. You might try upgrading your ImageMagick install, the URL I use for my Win32 environments is:

http://www.imagemagick.org/script/binary-releases.php#windows

Either the dll or static version should be fine.

Give this a try and let's see if that gets you going.

Thanks!
Mark



OK did that. I was on version 6.2.5
Im now on 6.3.5

I Also installed Ghost script per the imagemagick instructions GL version 8.57
I ran the 2 little tests on the imagemagick install and that worked.

I ran your test and it now seems to work I got the following
C:\imagemagick>convert -verbose -flatten -quality 85
a\public_html\mediagallery\mediaobjects\orig\2\2_nit
+profile "*" c:\Inetpub\tta\public_html\mediagallery
e.jpg
c:\Inetpub\tta\public_html\mediagallery\mediaobjects
576x384 576x384+0+0 DirectClass 8-bit 91.0996kb 0.03
c:\Inetpub\tta\public_html\mediagallery\mediaobjects
netpub\tta\public_html\mediagallery\mediaobjects\tn\
4=>200x133 200x133+0+0 DirectClass 16-bit 7.47656kb

So that seems like some progress. But when uploading an image I now get Error nitegate.jpg error converting uploaded file C:\WINDOWS\TEMP\php1BA.tmp
Webuser has read write to that directory.

I tried to rebuild the thumb option and one thumbnail now shows up, the other did not.
We are making progress :banana:

Next?

Mike




 Quote

Status: offline

mstewart

Forum User
Newbie
Registered: 07/09/07
Posts: 13
Update,
I tried to upload a different file and all seems well.
I deleted the image that would not give me a thumbnail.
So Im gonna sign this off as fixed.
Many thanks for your help.
Best,
Mike

 Quote

Status: offline

mevans

Forum User
Full Member
Registered: 02/08/04
Posts: 393
Location:Texas
Mike,

Glad it is working. Let me know if you run into any other problems.

Thanks!
mark
 Quote

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