Ticket #244 (closed defect: fixed)
Create a Capabilities Call for NetPBM / Ghostscript to know if PDF Previews can be created
| Reported by: | johnnyoffline | Owned by: | boutell |
|---|---|---|---|
| Priority: | critical | Milestone: | 1.4 |
| Component: | apostrophePlugin: Media | Version: | trunk |
| Keywords: | netpbm, ghostscript, pdf | Cc: | geoffd, hillerj, rickybanister, dordille, johnnyoffline, agilbert, |
| Symfony version: | 1.4 |
Description (last modified by johnnyoffline) (diff)
I need a way to know IF a good PDF preview can be created or not in the Media library. This is true for all production environments including Windows.
If you create a call to check for NetPBM and Ghostscript, we can determine whether or not to display a "canned" PDF preview image or an actual preview of the file.
I need this in the 1.3 Branch, but the functionality should probably exist in the Trunk as well.
_mediaItem.php, line 25:
<li class="a-media-item-thumbnail">
<?php include_partial('aMedia/editLinks', array('mediaItem' => $mediaItem)) ?>
<a <?php echo $linkAttributes ?> class="a-media-thumb-link">
<?php if ($type == 'video'): ?><span class="a-media-play-btn"></span><?php endif ?>
<?php if ($type == 'pdf'): ?><span class="a-media-pdf-btn"></span><?php endif ?>
<img src="<?php echo url_for($mediaItem->getScaledUrl(aMediaTools::getOption('gallery_constraints'))) ?>" />
</a>
</li>
Attachments
Change History
Note: See
TracTickets for help on using
tickets.



