As an aside to this, how do we get a link to open up in a new instance of the browser, as in the HTML target="_blank"? That might help with the PDF's?
Regards,
Andrew
MediaWiki: 1.4.5 PHP: 4.3.10 (cgi) MySQL: 4.0.25-standard-log
-----Original Message----- From: mediawiki-l-bounces@Wikimedia.org [mailto:mediawiki-l-bounces@Wikimedia.org]On Behalf Of Con Rodi Sent: 27 September 2005 16:27 To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] Allow PDF uploads?
Randy, I would not say it "breaks" the Special:Newimages page. The PDFs show up as blank images. Sure, they take up space, but it doesn't seem to be a big deal.
Rob, some browsers do indeed render the a pdf inline in the wiki page (at least Safari does this). The problem I've had in doing this is that it seems to take a very long time to download the files and render them--much longer than a comparably sized JPG file. On one Win XP computer IE took so long we gave up. So my practice is to point to the image page and let people download the document from there. At least if it takes a while, they understand they asked for something unusual.
It would be nice to be emancipated from the Image terminology when working with documents, but, hey, this at least works.
Con On Sep 27, 2005, at 11:16 AM, Randy Plemel wrote:
The only problem of using pdf as an image, is that it breaks the Special:Newimages page, and any Special page or gallery view of images, because it can't render pdf as an image file.
If somehow you could not have pdf's show up in Special:Newimages (or similar pages), then uploading pdf's would be great.
Randy http://archiporn.com
On 9/27/05, Rob Church robchur@gmail.com wrote:
Yeah, you could do that. Sorry, for some reason I had this vision of you wanting the browser to render the file, as opposed to calling the locally installed control. I really ought to think...:P
Rob Church
On 27/09/05, Con Rodi conrodi@vt.edu wrote:
Not so. You need to change $wgFileExtensions in your localSettings.php to something like this... $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'ogg', 'doc', 'pdf', 'txt', 'mov', 'wav' ); That will allow you to upload pdfs. You will need to refer to them as images, though. [[Image:something.pdf]] will try to inline the pdf file. This may not work well in some browsers, and may slow down page loading in all browsers. [[:Image:something.pdf]] will create a link to the image page that actually holds the pdf. From there any browser can download the pdf. Similar details apply for word documents or others.
Con
On Sep 27, 2005, at 10:47 AM, Rob Church wrote:
PDF is a document, not an image format. As far as I know, there is also no server-side control which would allow display of PDF files, so I have a nasty feeling the answer to both your questions is, "no".
Rob Church
On 27/09/05, Bass, Joshua L joshua.l.bass@lmco.com wrote:
I would like to allow PDF image uploads and for these to display as images. Is this possible? Is there a setting that controls this?
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org