Bitmap class to handle all Imagick conversions to bitmap#11411
Bitmap class to handle all Imagick conversions to bitmap#11411MorrisJobke merged 1 commit intoowncloud:masterfrom oparoz:imagick-bitmap-previews
Conversation
|
Thanks a lot for your contribution! Contributions to the core repo require a signed contributors agreement http://owncloud.org/contribute/agreement/ Alternatively you can add a comment here stating that this contribution is MIT licensed. Some more details about out pull request workflow can be found here: http://owncloud.org/code-reviews-on-github/ |
|
This contribution is MIT licensed |
lib/private/preview/bitmap.php
Outdated
There was a problem hiding this comment.
Fixed, sorry about that.
|
cc @georgehrke |
|
code looks good,
|
There was a problem hiding this comment.
ps is also a very common extension for postscript files
There was a problem hiding this comment.
Yeah, just thought of that. I'm updating the list of mimetypes as we speak.
|
I don't have any Photoshot or Illustrator file to test. |
|
PSD file http://mauricioestrella.deviantart.com/art/Cassette-PSD-File-86548493 (The full screen preview with the fixed gallery looks good with that one :)) |
|
@oparoz Thx for the links
👍 afterwords |
|
I wished Github would let me... I'm going to have to create a new branch again. |
|
after squashing you have to push --force |
|
That worked! \o/ Thanks for the tip, the cli works better than their GUI... |
|
The inspection completed: 5 new issues, 9 updated code elements |
|
Works nice! 👍 Thanks! And welcome as a ownCloud contributor :) |
Bitmap class to handle all Imagick conversions to bitmap
|
Feel free to also join the IRC channel #owncloud-dev on freenode |
|
Ah, thanks for the channel. Could come in handy before doing some mods :) |
As I was considering more formats to play with, I quickly realised that the process was always the same. Imagick does a good job out of the box to properly convert files to bitmaps.
I'm always targeting the layer 0 of the file to convert as it's the one which either contains the first page, the only image or a flattened representation of a document.
Bitmap is in the name of the class because I can see a separate class being created for people who have an improved version of Imagemagick and who want to generate SVGs
And finally, .psd, .ai and .eps support have been added.