Replies: 17 comments 29 replies
-
We recommend Homebrew which provides pre-built binaries for Mac (some users prefer MacPorts). Download HomeBrew and type:
Alternatively, build ImageMagick from source. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the reply. As I've used ImageMagick for years I've never looked around at other stuff. This has forced me to so and NConvert appears to do what I want. Shame. |
Beta Was this translation helpful? Give feedback.
-
If you're building from source, you probably need to actually do the install step to get the dylib's install name set properly.
|
Beta Was this translation helpful? Give feedback.
-
" -compose CopyOpacity -composite" works fine, as far as I know. If it doesn't for you, please show your command and input files. |
Beta Was this translation helpful? Give feedback.
-
Searching the internet seems to indicate that CopyOpacity disappeared from Imagemagick version 7, which I have on my Mac. On my Linux computer, it is version 6. This could be part of my problem. I need to go through it all step by step. |
Beta Was this translation helpful? Give feedback.
-
CopyOpacity works fine in v7. V7 syntax is stricter than v6, and that might be the problem. Please show your command and input images. |
Beta Was this translation helpful? Give feedback.
-
Starting at the beginning. Below is a simpified bash script to run on my mac and my raspberry pi. On the pi, it works and produces these files pi_copyright_stamp.png pi_stamp_fgnd.png pi_stamp_mask.png on the mac it produces cellini:magictest alan$ ./copyright.sh Note that I have a symlink lrwxr-xr-x 1 alan staff 17 6 Mar 14:03 /Users/alan/ImageMagick@ -> ImageMagick-7.0.7 and cellini:temp alan$ export Here is the script
|
Beta Was this translation helpful? Give feedback.
-
I downloaded the newer version of the mac binary release from https://imagemagick.org/script/download.php and changed my link and still get the same error with the path. cellini:magictest alan$ ./copyright.sh |
Beta Was this translation helpful? Give feedback.
-
Next up is resize with
Works on the Pi. On the mac I get cellini:magictest alan$ ./resize.sh |
Beta Was this translation helpful? Give feedback.
-
I can't help with the dyld problem. For IM v7, I would do it like this, in a single command:
If you don't want to save intermediate results, you can remove "-write stamp_fgnd.png" and "-write stamp_mask.png". |
Beta Was this translation helpful? Give feedback.
-
I might be making progress cellini:magictest alan$ ./copyright.sh |
Beta Was this translation helpful? Give feedback.
-
I've produced a watermark using a direct path to a font. Not how it should be tboug
|
Beta Was this translation helpful? Give feedback.
-
Almost managed it. The background of the watermark should be transparent. |
Beta Was this translation helpful? Give feedback.
-
Your commands work fine for me with v6.9.9-50. For v7, I suggest you use "magick". If you use "convert" etc then you get v6 syntax and v7 processing. This is a temporary workaround only for scripts that can't be adapted. For all new development, I suggest using "magick". See my example command above. |
Beta Was this translation helpful? Give feedback.
-
I corrected my command, after omitting the close parenthesis: ) |
Beta Was this translation helpful? Give feedback.
-
Thanks for the help. ImageMagick seems to be doing what I want on Mac OS big sur. I can create a couple of jpegs, black and white, resize them, create a watermark, put the watermark on the small jpegs. http://clifford.ac/~alan/doneitwhite.jpg Now to make sure it re-integrates with my photo processing scripts. |
Beta Was this translation helpful? Give feedback.
-
ivanooi wrote to ImageMagick/ImageMagick
[at 18:16 (-0000) on Tuesday, 8th March, 2022]:
I see... I'm trying to build a static IM but no luck for 7.1.0 under Mac 11.
These are the notes I took
ImageMagick on Mac OS Big Sur
Install ImageMagick-x86_64-apple-darwin20.1.0.tar.gz
from https://imagemagick.org/script/download.php
-----------------------------------------------------------
Put a symbolic link in home
/Users/alan/ImageMagick@ -> ImageMagick-7.0.10
-----------------------------------------------------------
Add /Users/alan/ImageMagick/bin to the path
-----------------------------------------------------------
Apparently
export DYLD_LIBRARY_PATH="/Users/alan/ImageMagick/lib/"
is ignored on the mac and doesn't become part of the environment.
-----------------------------------------------------------
Modify the following for current names and run
#!/bin/bash
# magick: set the correct path to libMagickCore.dylib
install_name_tool -change \
/ImageMagick-7.0.10/lib/libMagickCore-7.Q16HDRI.8.dylib \
@executable_path/../lib/libMagickCore-7.Q16HDRI.8.dylib \
/Users/alan/ImageMagick-7.0.10/bin/magick
# magick: set the correct path to libMagickWand.dylib
install_name_tool -change \
/ImageMagick-7.0.10/lib/libMagickWand-7.Q16HDRI.8.dylib \
@executable_path/../lib/libMagickWand-7.Q16HDRI.8.dylib \
/Users/alan/ImageMagick-7.0.10/bin/magick
# libMagickWand.dylib: set the correct ID
install_name_tool -id \
@executable_path/../lib/libMagickWand-7.Q16HDRI.8.dylib \
/Users/alan/ImageMagick-7.0.10/lib/libMagickWand-7.Q16HDRI.8.dylib
# libMagickWand.dylib: set the correct path
install_name_tool -change \
/ImageMagick-7.0.10/lib/libMagickCore-7.Q16HDRI.8.dylib \
@executable_path/../lib/libMagickCore-7.Q16HDRI.8.dylib \
/Users/alan/ImageMagick-7.0.10/lib/libMagickWand-7.Q16HDRI.8.dylib
# libMagickCore.dylib: set the correct ID
install_name_tool -id \
@executable_path/../lib/libMagickCore-7.Q16HDRI.8.dylib \
/Users/alan/ImageMagick-7.0.10/lib/libMagickCore-7.Q16HDRI.8.dylib
-----------------------------------------------------------
Install Xquartz
-----------------------------------------------------------
From here https://legacy.imagemagick.org/Usage/scripts/
get the imagick_type_gen script and then run
find /System/Library/Fonts -type f -name '*.*' | ./imagick_type_gen -f - > type.xml
put type.xml into
~/ImageMagick/etc/ImageMagick-7/type.xml
…-----------------------------------------------------------
Use magic 7 terminology such as
magick convert
instead of
convert
I need to find out more about this.
-----------------------------------------------------------
|
Beta Was this translation helpful? Give feedback.
-
New operating system for me but an old problem.
mogrifying -resize 1024x1024 /tmp/p340_1982.jpgqof4Mg.jpg
dyld: Library not loaded: /ImageMagick-7.0.10/lib/libMagickCore-7.Q16HDRI.8.dylib
Referenced from: /Users/alan/ImageMagick-7.0.10/bin/mogrify
I solved this in the past by putting a link in the / directory.
On big sur, access to / is restricted and the kludge around it seems extremely convoluted.
Can the sources be download, the bad reference fixed, and compiled?
Beta Was this translation helpful? Give feedback.
All reactions