Skip to content

Bitmap class to handle all Imagick conversions to bitmap#11411

Merged
MorrisJobke merged 1 commit intoowncloud:masterfrom
oparoz:imagick-bitmap-previews
Oct 4, 2014
Merged

Bitmap class to handle all Imagick conversions to bitmap#11411
MorrisJobke merged 1 commit intoowncloud:masterfrom
oparoz:imagick-bitmap-previews

Conversation

@oparoz
Copy link
Copy Markdown
Contributor

@oparoz oparoz commented Oct 3, 2014

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.

@ghost
Copy link
Copy Markdown

ghost commented Oct 3, 2014

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/

@oparoz
Copy link
Copy Markdown
Contributor Author

oparoz commented Oct 3, 2014

This contribution is MIT licensed

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Too much intendation

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed, sorry about that.

@MorrisJobke
Copy link
Copy Markdown
Contributor

cc @georgehrke

@georgehrke
Copy link
Copy Markdown
Contributor

code looks good,
to test:

  • PDF is still working
  • TIFF is still working
  • Illustrator is working
  • Postscript is working
  • Photoshop is working

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ps is also a very common extension for postscript files

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, just thought of that. I'm updating the list of mimetypes as we speak.

@georgehrke
Copy link
Copy Markdown
Contributor

I don't have any Photoshot or Illustrator file to test.
@MorrisJobke Do you have any psd/ai files to test this?

@oparoz
Copy link
Copy Markdown
Contributor Author

oparoz commented Oct 4, 2014

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
Copy link
Copy Markdown
Contributor Author

oparoz commented Oct 4, 2014

@georgehrke
Copy link
Copy Markdown
Contributor

@oparoz Thx for the links
Both, pdf and ai, are working fine. :)

  • please squash

👍 afterwords

@oparoz
Copy link
Copy Markdown
Contributor Author

oparoz commented Oct 4, 2014

I wished Github would let me... I'm going to have to create a new branch again.

@georgehrke
Copy link
Copy Markdown
Contributor

after squashing you have to push --force

@oparoz
Copy link
Copy Markdown
Contributor Author

oparoz commented Oct 4, 2014

That worked! \o/ Thanks for the tip, the cli works better than their GUI...

@scrutinizer-notifier
Copy link
Copy Markdown

The inspection completed: 5 new issues, 9 updated code elements

@MorrisJobke
Copy link
Copy Markdown
Contributor

Works nice! 👍 Thanks!

And welcome as a ownCloud contributor :)

MorrisJobke added a commit that referenced this pull request Oct 4, 2014
Bitmap class to handle all Imagick conversions to bitmap
@MorrisJobke MorrisJobke merged commit 86931bd into owncloud:master Oct 4, 2014
@MorrisJobke
Copy link
Copy Markdown
Contributor

Feel free to also join the IRC channel #owncloud-dev on freenode

@oparoz
Copy link
Copy Markdown
Contributor Author

oparoz commented Oct 4, 2014

Ah, thanks for the channel. Could come in handy before doing some mods :)

@oparoz oparoz deleted the imagick-bitmap-previews branch October 4, 2014 16:51
@lock lock bot locked as resolved and limited conversation to collaborators Aug 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants