-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move image processing to ImageMagick (Wand). #270
Conversation
There is still much more work to do on this PR. We need to add a JS library of some form to allow you to start playing the animated GIFs as I don't want them to be playing on the screen constantly. This is related to issue #241.
@mcrmonkey comments? |
I also re-enabled the debugger instead of error pages. I don't know why I left it in during the first commit. This also needs fixing.
Current coverage is 100%@@ master #270 diff @@
====================================
Files 32 32
Lines 1804 1826 +22
Methods 0 0
Messages 0 0
Branches 284 288 +4
====================================
+ Hits 1804 1826 +22
Misses 0 0
Partials 0 0
|
not tested it myself but the code appears sane on the surface. thought it would be a bigger rewrite too. |
If you could get it up and running and try and break it that would be handy. It's also shrunk the Debian dependencies to 1. I've updated the docs and what not in the README so it can be build and the Dockerfile. |
Now cycle through each image of an animated GIF and re-sizes it adding it to a temporary image. The main image is then swapped for this temporary image.
Animated GIFs will not be loaded unless you press the `GIF` button. jQuery GIF player is being used to switch between the PNG preview and the actual animated GIF. Tests have been tweaked and every where the `process_upload` is. This now returned 2 arguments filename and animated_filename. The templated now also add a `gif` class to an image if it is an animated gif.
There is still much more work to do on this PR.
We need to add a JS library of some form to allow you to start playing
the animated GIFs as I don't want them to be playing on the screen
constantly.
This is related to issue #241.