Closed (fixed)
Project:
PDFPreview
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
2 Dec 2011 at 14:15 UTC
Updated:
5 Apr 2012 at 21:32 UTC
Jump to comment: Most recent file
Hey there,
I converted your module to work on Drupal 7. The module now belongs to the "Media" category and the user can define the size of the preview image (ImageMagick'S convert executable will scale the image and keep aspect ratio).
I'm new to Drupal module development, so I'd appreciate any help. Right now I'm trying to find out how to tell the Media Browser to use my preview images for PDF files.
Cheers!
Florian
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | pdfpreview.zip | 13.47 KB | adamgerthel |
| #7 | pdfpreview.zip | 13.91 KB | wOOge |
| #6 | pdfpreview.zip | 13.63 KB | wOOge |
| #2 | pdfpreview-7.x-0.2-alpha.patch | 14.56 KB | floeschie |
| pdfpreview-7.x-0.1-alpha.patch | 14.41 KB | floeschie |
Comments
Comment #1
floeschie commentedSorry, I selected the wrong Version. Just read that I should commit patches against the latest dev version.
Comment #2
floeschie commentedAdded the File object to the render array so one can access all the file's attributes in the field templatem for customized output.
Comment #3
juanjo_vlc commentedThanks floeschie, it looks well.
I'm not able to take care of 7.x release at this moment, so, I set you as co-mantainer of this module, please, feel free to upload your 7.x release to git repo.
Thanks in advance.
Comment #4
adamgerthel commented@floeshie I'm looking for a D7 version. Is your code here the latest?
Also, does the module work with GD tools?
Comment #5
floeschie commented@AdamGerthel: GD cannot handle PDF files AFAIK...
Comment #6
wOOge commentedI made some changes to current D7 Dev (dated March 8, 2012), it wasn't writing the previews, now it is, and works on a private files system.
Attached is an updated module, but I can't get the rendered JPG to show on the page. Can anyone with more knowledge on this module, (and experience making patches) help?
Comment #7
wOOge commentedRemoved some debugging stuff I left in there. Here is a new file.
Comment #8
wOOge commentedComment #9
adamgerthel commentedHere's our version that displays the images
Comment #10
wOOge commented@AdamGerthel Thanks for this — your version works, except when private files are enabled, the image is not displayed. Any ideas as to why?
Comment #11
adamgerthel commentedNo, I'm not sure - and I didn't write the code myself. It could have something to do with where the files are being saved.
Anyway, I forgot to mention that we removed the md5 key in the filename. We didn't really see it as necessary since the FID is always unique
Comment #12
juanjo_vlc commentedSorry, I've been very busy and I didn't have too much time to maintain this module or resolve incidences. I didn't see @AdamGerthel's work since now, so I've fixed the code from @floeschie work.
Please, take a look at 7.x-2.0 release. It has some improvements and compatibility with image styles.
Comment #13
juanjo_vlc commented