[SOLVED] PDF file support
|
ezcat
Joined: 2008-05-11
Posts: 19 |
Posted: Wed, 2009-09-30 13:51
|
|
Is there any way to add a PDF file in Gallery like I can add a JPG file? I currently have V2.2 installed. Thanks, |
|

Posts: 4338
I believe if you use ImageMagick as your graphics toolkit then Gallery2 will support pdfs. See
http://codex.gallery2.org/Gallery2:Modules:imagemagick
Posts: 75
I'm facing the same issue. Not only I have also problem browsing video file (.mov and .avi). Here the output of the test of imagemagick plug in:
image/gif
image/jpeg
image/pjpeg
image/jp2
image/jpg2
image/jpx
image/png
image/tiff
image/svg+xml
image/bmp
application/photoshop
image/x-photo-cd
image/wmf
image/tga
image/jpeg-cmyk
image/tiff-cmyk
application/photoshop-cmyk
rocsca
Posts: 4338
ImageMagick needs extra software installed and configured on your server, see the link I posted please.
Posts: 22892
Ask your host to install ghostscript binary so that is available to imagemagick to use.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 75
Thanks Dave. Infact, it just was GS that I had to install..
Moreover I missed to increase the max size of upload in 'php.ini' file. But this is no a matter of Gallery.. Now I miss the head facing the problem of thumbnail for uploaded PDF documents. They was created (Infat I see them in gallery data dir) but the browser (either IE or FF) does not display them. I have enabled debugging of Gallery but no error of imagemagick I have found.
I only see that the thumb is not displayed as if the link is corrupted. Here the relative path that have to generate the thumb:
/main.php?g2_view=core.DownloadItem&g2_itemId=2407&g2_serialNumber=2
If I try to follow it I get:
Error Detail -
Error (ERROR_BAD_PARAMETER)
* in C:\Apache2.2\htdocs\gallery2\modules\core\DownloadItem.inc at line 65 (GalleryCoreApi::error)
* in C:\Apache2.2\htdocs\gallery2\main.php at line 450 (DownloadItemView::renderImmediate)
* in C:\Apache2.2\htdocs\gallery2\main.php at line 104
* in C:\Apache2.2\htdocs\gallery2\main.php at line 88
System Information
Gallery version 2.3
PHP version 5.2.5 apache2handler
Webserver Apache/2.2.6 (Win32) proxy_html/3.0.0 PHP/5.2.5
Database mysqlt 5.0.27-community-nt
Toolkits ImageMagick, Gd
Operating system Windows NT W2K-WEBHOSTING5 5.0 build 2195
Browser Mozilla/5.0 (Windows; U; Windows NT 6.0; it; rv:1.8.1) Gecko/20061010 Firefox/2.0 (.NET CLR 3.5.30729)
I can't figure out why I can't see the thumbs.
Thanks in advance for your help.
rocsca
Posts: 22892
Since IM is working... uninstall GD so that is not adding to the confusion.
URL?
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 75
Thanks Dave. I have disinstalled GD.
Here the URL to see that really my theme has a problem with thumbnail...
http - <colon+double slash> - www.rocsca.it - <slash> - gallery2 - <slash> -
Nome Utente: test
Password: test
Thanks in advance,
rocsca
Posts: 75
Sorry Dave,
I just have tried with a smaller document (about 100K) and the thumb is displayed correctly.. The proble so is when the uploaded document is too big.. I think..
Is there exist any workaround or is just a bug?
Still thanks,
rocsca
Posts: 6138
IE cannot display images in the CMYK colorspace.
I have posted a fix for imagemagick/CMYK colorspace before - search for it.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 75
I don't think that is a matter of CMYK. Because it is not enabled (In IM plugin settings). But I can try to apply the fix anyway.. What I have to looking for to find this fix?
rocsca
Posts: 6138
http://www.google.com/search?q=CMYK+Imagemagick+suprsidr+site%3Agallery.menalto.com&ie=utf-8&oe=utf-8&aq=t
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 75
Simply great!! It work well now!! I really really thank you!!
rocsca