Open joankaradimov opened 6 years ago
This project is unmaintained, though PRs are welcome.
Quite likely, the problem is here https://github.com/Serabe/RMagick4J/blob/master/Magick4J/src/magick4j/MagickImage.java#L988-L995
Cannot test in a Windows machine.
The thing is there is a behaviour for settings filetype with a prefix of type jpeg:filename
, so it is taking C as a filetype.
A fix is not trivial.
This project is unmaintained, though PRs are welcome.
Thanks for taking the time to answer even though this is no longer maintained.
Quite likely, the problem is here
Yes, I think I see the problem.
I won't have the time now, but I am definitely interested in writing the fix and doing a PR. Maybe you can keep the issue open for now.
My environment is:
JRuby 9.1.10.0 through 9.1.15.0 Java 8 Windows 10
I initially encountered this using jnormington/dotdiff. After some debugging I came up with a straightforward way to reproduce it in a
jirb
. Here's what a reproduction looks like:At this point the file
C:\somewhere\out1.png
gets generated and it's empty.What is interesting is that this works correctly:
Both of these end up calling MagickImage::writeImage. So I am assuming that the problem is somewhere in MagickImage::write. I don't have a fix for this, but the obvious workaround is to monkeypatch the
write
method:... still a proper fix would be welcome.