Page 1 of 1

Difference between win/ubuntu and OS X. [Solved]

Posted: 2018-09-17T07:50:56-07:00
by depmo
I've just made a script that deals with gradients and joining images with a base OS X system, then when I've moved it over to Bash on Windows, I'm not seeing any of my alpha blending work properly. How do I begin?

Code: Select all

convert out_0_1.png -extent 1536x1024 out_0_2.png overlap_1k.png -gravity East -composite overlap_0_etc.png
I'm using a gradient to join two images. I would have hoped that didn't cause any concerns, and I'll move it over to Linux next... but I'm just wondering if anyone has seen this Ubuntu in Windows issue. I'm not a totally amateur with IM, but I must admit that I've not dealt much with combining images this way.
Cheers,
Dan

Re: Difference between win/ubuntu and OS X... yeah..

Posted: 2018-09-17T07:57:05-07:00
by snibgo
depmo wrote:How do I begin?
By saying what versions of IM you use. And then you might expand on "I'm not seeing any of my alpha blending work properly", with sample images.

Re: Difference between win/ubuntu and OS X... yeah..

Posted: 2018-09-17T08:44:13-07:00
by fmw42
Bash on Windows? Is that Windows 10 Unix or Windows w/Cygwin?

Are you sure that you are actually using the bash terminal in Windows and not a Windows CMD window?

What else is in the script? Perhaps you have not installed all the Unix tools such as bc in your Windows bash?

I assume the -extent is for the first image. If so, try putting parentheses around the first image and the extent.


__________


Please, always provide your IM version and platform when asking questions, since syntax may differ. Also provide your exact command line and if possible your images.

See the top-most post in this forum "IMPORTANT: Please Read This FIRST Before Posting" at http://www.imagemagick.org/discourse-se ... f=1&t=9620

If using Imagemagick 7, then see http://imagemagick.org/script/porting.php#cli

Re: Difference between win/ubuntu and OS X... yeah..

Posted: 2018-09-17T16:42:15-07:00
by depmo
IM 6.9.7-4 Q16 x86_64 20170114 on from installed via apt, running on Window's internal Ubuntu, not Cygwin.
Working script was made on ImageMagick 7.0.7-24 Q16 x86_64 2018-02-26 on MacOS.

Here is how it's looking on the Winux(?), if that's a better name for it! Image
vs how it is on the MacOS machine. Image

Re: Difference between win/ubuntu and OS X... yeah..

Posted: 2018-09-17T16:48:11-07:00
by depmo
Yes, bc is installed. I figure that can't be missing from many *nix installs!
Also, can't post entire code for legal reasons, but it's failing on this line I know for sure. I'll try parentheses and installing from source next (grrr... I can't imagine that's fun?)

Re: Difference between win/ubuntu and OS X... yeah..

Posted: 2018-09-17T16:57:18-07:00
by fmw42
IM 6.9.7.4 was right at the time Imagemagick was undergoing some serious changes to colorspace and grayscale. I would not trust result from that version.

Sorry but I am confused with your images. Can you post your individual input and output images (not screen snaps) so we can test properly.

Did you test IM 7.0.8.11 vs IM 6.9.10.11 on the same computer? If so, are there differences between those two.

Re: Difference between win/ubuntu and OS X... yeah..

Posted: 2018-09-17T17:01:56-07:00
by snibgo
You seem to have posted screenshots, but we need the actual image files.

The names in the screenshots are different to those in the OP command, so I can't tie the images to a command.

The OP command is enclosed in three sets of backquotes. Do you really have those backquotes?

Re: Difference between win/ubuntu and OS X... yeah..

Posted: 2018-09-18T19:31:40-07:00
by depmo
I recompiled to 7.0.8.11 on the Windows/Ubuntu machine and it all works perfectly! Thanks for the advice.