g2image 3.0.2 does not seem to support pdf files

bsimecek

Joined: 2006-02-18
Posts: 9
Posted: Mon, 2007-10-15 05:13

I am using the g2image 3.0.2 addon through the JCE component. I have pdf files in my gallery2 albums (which is supported by gallery2). When browsing to these albums using g2image, I do see the pdf's in the lists of thumbnails, but when "inserting" the pdf file, i get an object in the editor that does not translate to be of any use. The actual object appears to just be text inside an image box.

Is there a way to insert pdf image links (that are in the gallery) using g2image?

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Mon, 2007-10-15 12:45

I haven't done any testing of pdf files. In the normal gallery view, do they work as pdf's? If so, is there a Gallery2 module that's supporting them, or do they just download into your Adobe Reader (or the like) where you then see them? (Just trying to figure out where the real cause of the failure to recognize it as a pdf is.)

If you have a link to an example of a pdf in Gallery2 and the resulting g2image-inserted link in Joomla, that would be very helpful in root-cause determination.

Thanks,
Kirk
____________________________________
G2Image Documentation, G2Image Demo Page, My Family Website

 
bsimecek

Joined: 2006-02-18
Posts: 9
Posted: Mon, 2007-10-15 15:49

The pdf item is displayed without a thumbnail (or default for application/pdf) and when clicked on, only shows a "Download document" link. Clicking on the link does just use the local pdf viewer to display the document. My guess is the entire list of non image files that are supported by this module are handled the same way.

Here is the partial link...

main.php?g2_view=core.DownloadItem&g2_itemId=156&g2_GALLERYSID=3069a11e542ac16a2af043c538fb502a

 
thidalgo

Joined: 2007-08-26
Posts: 20
Posted: Mon, 2007-10-15 15:56

Hi Kirk,

Gallery2 uses imagemagik to manipulate files pdf

A extract of http://codex.gallery2.org/Gallery2:Features

<--Begin Copy-->
Supported MIME Types

* You can upload any filetype to G2
* G2 generates for the following filetypes thumbnails and webviewable and resized images.
- imagemagick: gif, jpg, jp2 (jpeg 2000), png, tga, tiff, svg, bmp, pdf, eps, psd, pcd, wmf
<-- End Copy-->

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Mon, 2007-10-15 16:08
bsimecek wrote:
When browsing to these albums using g2image, I do see the pdf's in the lists of thumbnails, but when "inserting" the pdf file, i get an object in the editor that does not translate to be of any use. The actual object appears to just be text inside an image box.

So, when you click on the resulting link, even when embedded, does it give you a download dialog?

Are you looking for it to be displayed as an actual image, or do you just want it to be a download link like it is in the standalone Gallery?

G2Image will only insert the G2-generated URL to the item. So, if it doesn't have a thumbnail, it will just display the text link and then that link will be processed by G2 the same way as it is in the stand alone Gallery. So if the stand alone gallery only allows pdf downloads, then the resulting link will do the same.

I'm not sure that gets you what you're looking for, but I hope it at least explains what's going on.

EDIT: I just did a quick test on my dev box, and I think I'm seeing what you're talking about. The resulting link doesn't have anything in its href attribute. I'll have to do some troubleshooting to figure out how G2 deals with pdf files in the background.

Kirk
____________________________________
G2Image Documentation, G2Image Demo Page, My Family Website

 
bsimecek

Joined: 2006-02-18
Posts: 9
Posted: Mon, 2007-10-15 16:22

When using g2image, the pdf is listed with the thumbnails or details listings, but when inserting it into content, only a resizable box with the base filename is shown. Ultimately, this would be ok, but the resizable box is not required and the final output should basically be the same link location as the gallery2 "Download document" link.

 
bsimecek

Joined: 2006-02-18
Posts: 9
Posted: Mon, 2007-10-15 17:36

If there is a thumbnail representitive of the filetype for a file, after inserting it into an article, the thumbnail will offer a link to the g2 page that in turn offers the "Download document" link. The thumbnail should at least offer the same link as the "Download document" link (no g2 interface should be required).

If no thumbnail is set for the filetype, then the previous mentioned issue occurs (where only the filename is shown with no link available).

Is it possible to offer (for non image types) the option to insert the default thumbnail OR insert the filename (or description) linked directly to the download?

This link may help...
http://gallery.menalto.com/node/38981

 
bsimecek

Joined: 2006-02-18
Posts: 9
Posted: Tue, 2007-11-06 03:55

Did this issue ever get addressed?
The only work around (long way) that I have is to still upload non images to your gallery (as normal), but use the LINK option in the article to reference the document (the "download document" link in gallery is the url to use).