Hi all,
I am uploading Photoshop (PSD) files to my MediaWiki, but when I view them, a white rectangle appears where a preview image should be. I realize PSD is not a supported file, but I had the same problem with PDFs and I was able to get thumbnail previews to appear by installing the PdfHandler extension. I was hoping there's a similar workaround for PSDs, but Google turned up nothing.
Actually, I don't even require preview images. I just don't want an empty rectangle to appear as the file preview, since it gives the impression that the file is corrupted. A Photoshop logo or even no thumbnail at all would be better. Any suggestions?
I am using MediaWiki 1.16.4. Thanks!
Trevor
Hi,
On Oct 2, 2012 9:46 AM, "Trevor Harmon" trevor@vocaro.com wrote:
I am using MediaWiki 1.16.4.
That's really old. Are able to upgrade?
I think (guess?) many people on this list would help you upgrade but not help with much else on your very old version.
-Jeremy (haven't started googling yet; don't even gave a computer open yet)
On Oct 2, 2012, at 7:49 AM, Jeremy Baron jeremy@tuxmachine.com wrote:
I am using MediaWiki 1.16.4.
That's really old. Are able to upgrade?
1.16 is what my hosting provider offers for their one-click install.
Are you saying 1.16 is causing this problem? I would be happy to upgrade if that's true.
Trevor
On 2 October 2012 15:55, Trevor Harmon trevor@vocaro.com wrote:
On Oct 2, 2012, at 7:49 AM, Jeremy Baron jeremy@tuxmachine.com wrote:
I am using MediaWiki 1.16.4.
That's really old. Are able to upgrade?
1.16 is what my hosting provider offers for their one-click install. Are you saying 1.16 is causing this problem? I would be happy to upgrade if that's true.
No, that's nothing to do with the actual problem, it's just a side issue.
Thumbnailing is handled by helper applications. Your problem would be to find something that extracts the thumbnail from a PSD (most PSDs have a thumbnail included). If you want PSDs to be treated by MediaWiki exactly as images are, you're asking for something that can reliably render arbitrary PSDs on the fly. I'm not sure anyone has ever done this ... Gimp can open some PSDs and I *think* it can be run in the background to render a document. But it ain't fast. And I suspect you'd be the first person ever to do this. Would be an interesting exercise, of course :-)
- d.
On Oct 2, 2012, at 7:59 AM, David Gerard dgerard@gmail.com wrote:
you're asking for something that can reliably render arbitrary PSDs on the fly.
It doesn't have to be on the fly -- just needs to run once, on upload. This is how PdfHandler does it. When the PDF is uploaded, it calls ImageMagick to generate the preview image. PSDs could be handled the same way, since ImageMagick supports them too. If there's no such PSD handler for MediaWiki right now, that's kind of what I expected, but unfortunately I don't have time to write one myself.
As a Plan B, is there no way of dealing with the blank rectangle problem? Before installing PdfHandler, I noticed that MediaWiki was displaying an Acrobat logo as the preview image. I'm wondering if I can get MediaWiki to display a Photoshop logo or a generic "Unknown Image" graphic. Even some text saying "No preview image available" would be preferable to the empty rectangle.
Thanks!
Trevor
On 10/02/2012 10:55 AM, Trevor Harmon wrote:
On Oct 2, 2012, at 7:49 AM, Jeremy Baron jeremy@tuxmachine.com wrote:
I am using MediaWiki 1.16.4.
That's really old. Are able to upgrade?
1.16 is what my hosting provider offers for their one-click install.
Do you happen to know how the one-click install is provided? Is it CPanel?
On Oct 2, 2012, at 8:15 AM, "Mark A. Hershberger" mah@everybody.org wrote:
Do you happen to know how the one-click install is provided? Is it CPanel?
I think it's a proprietary system.
I could set up my own MediaWiki, but I don't want to go through that hassle unless I have a reason to believe it will solve the PSD problem.
Trevor
On Tue, Oct 2, 2012 at 6:45 AM, Trevor Harmon trevor@vocaro.com wrote:
Actually, I don't even require preview images. I just don't want an empty rectangle to appear as the file preview, since it gives the impression that the file is corrupted. A Photoshop logo or even no thumbnail at all would be better. Any suggestions?
You can make an icon and plop it into skins/common/images/icons/fileicon-psd.png
It should automatically get used on file pages and [[file:foo.psd]] links.
-- brion
Worked great! Thank you,
Trevor
On Oct 2, 2012, at 10:04 AM, Brion Vibber brion@pobox.com wrote:
On Tue, Oct 2, 2012 at 6:45 AM, Trevor Harmon trevor@vocaro.com wrote:
Actually, I don't even require preview images. I just don't want an empty rectangle to appear as the file preview, since it gives the impression that the file is corrupted. A Photoshop logo or even no thumbnail at all would be better. Any suggestions?
You can make an icon and plop it into skins/common/images/icons/fileicon-psd.png
It should automatically get used on file pages and [[file:foo.psd]] links.
-- brion _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org