Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28257
Modified Files:
serendipity_admin_image_selector.php
Log Message:
generate thumbnails from pdf files
the implementation shows some flaws in serendipitys image handling. thumb mimetype != file mime type.
this one has a little bug: -flatten takes the last page of the pdf, the first would be much nicer. some imagemagick freaks out there who can solve that?
Index: serendipity_admin_image_selector.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_admin_image_selector.php,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- serendipity_admin_image_selector.php 30 Nov 2004 16:02:25 -0000 1.34
+++ serendipity_admin_image_selector.php 5 Dec 2004 15:05:50 -0000 1.35
@@ -91,7 +91,7 @@
<div>
<?php
- if ($is_image) {
+ if (!file_exists($imgsrc)) {
?>
<img align="right" src="<?php echo $imgsrc; ?>">
<h1><?php printf(YOU_CHOSE, $file['name']); ?></h1>
|