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

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
depmo
Posts: 4
Joined: 2018-09-17T07:38:41-07:00
Authentication code: 1152

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

Post by depmo » 2018-09-17T07:50:56-07:00

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
Last edited by depmo on 2018-09-18T19:32:45-07:00, edited 2 times in total.

snibgo
Posts: 11910
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

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

Post by snibgo » 2018-09-17T07:57:05-07:00

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.
snibgo's IM pages: im.snibgo.com

User avatar
fmw42
Posts: 25256
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

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

Post by fmw42 » 2018-09-17T08:44:13-07:00

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

depmo
Posts: 4
Joined: 2018-09-17T07:38:41-07:00
Authentication code: 1152

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

Post by depmo » 2018-09-17T16:42:15-07:00

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

depmo
Posts: 4
Joined: 2018-09-17T07:38:41-07:00
Authentication code: 1152

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

Post by depmo » 2018-09-17T16:48:11-07:00

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?)

User avatar
fmw42
Posts: 25256
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

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

Post by fmw42 » 2018-09-17T16:57:18-07:00

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.

snibgo
Posts: 11910
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

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

Post by snibgo » 2018-09-17T17:01:56-07:00

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?
snibgo's IM pages: im.snibgo.com

depmo
Posts: 4
Joined: 2018-09-17T07:38:41-07:00
Authentication code: 1152

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

Post by depmo » 2018-09-18T19:31:40-07:00

I recompiled to 7.0.8.11 on the Windows/Ubuntu machine and it all works perfectly! Thanks for the advice.

Post Reply