Giter Club home page Giter Club logo

Comments (10)

dooman87 avatar dooman87 commented on June 19, 2024 1

Yup, so it seems like an IM bug. I tested it on version 7.0.7-2 and it's working as expected:

docker run -v $(pwd):/imgs --entrypoint=composite dpokidov/imagemagick:7.0.7-2 -gravity Center /imgs/image_resize.png /imgs/canvas.png /imgs/out.png

from imagemagick-docker.

dooman87 avatar dooman87 commented on June 19, 2024 1

I've also opened an issue in IM - ImageMagick/ImageMagick#4271

from imagemagick-docker.

dooman87 avatar dooman87 commented on June 19, 2024 1

And it turned out that the latest version of IM needs an extra -colorspace -sRGB to make it work.

from imagemagick-docker.

dooman87 avatar dooman87 commented on June 19, 2024

Hey,

Thanks for creating this. Could you please share the image, so I can reproduce and show the version of the local IM (composite --version)?

from imagemagick-docker.

mozgbrasil avatar mozgbrasil commented on June 19, 2024

Follows in

https://drive.google.com/drive/folders/1bqTV4nlLg0E1bn_BBAFBHPvq2bglmwh7?usp=sharing

from imagemagick-docker.

dooman87 avatar dooman87 commented on June 19, 2024

I think -composite flag is different from composite entrypoint. The below worked for me:

docker run -v $(pwd):/imgs --entrypoint=composite dpokidov/imagemagick -gravity Center /imgs/image_resize.png /imgs/canvas.png /imgs/out.png

from imagemagick-docker.

mozgbrasil avatar mozgbrasil commented on June 19, 2024

I just installed imagemagick and run the following command

composite -gravity Center image_resize.png canvas.png image.png

Which returned the expected result

Using the container the image is returned with error in the case in black and white

Captura de tela de 2021-09-22 09-45-10

from imagemagick-docker.

dooman87 avatar dooman87 commented on June 19, 2024

Looks like an IM bug to me. Just to make sure could you please post composite -version output here?

from imagemagick-docker.

mozgbrasil avatar mozgbrasil commented on June 19, 2024
$ composite --version
Version: ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org
Copyright: © 1999-2019 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC Modules OpenMP 
Delegates (built-in): bzlib djvu fftw fontconfig freetype heic jbig jng jp2 jpeg lcms lqr ltdl lzma openexr pangocairo png tiff webp wmf x xml zlib

from imagemagick-docker.

mozgbrasil avatar mozgbrasil commented on June 19, 2024

Thank you my friend

from imagemagick-docker.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.