Re: ImageMagick port outdated

2020-09-30 Thread Christoph Kukulies
I had deinstalled ImageMagick during my attempts to get heic working and 
installing the tar ball from the ImageMagick site.
Thus no /opt/was there.

Now I reinstalled the port:

$ port info ImageMagick
ImageMagick @6.9.11-29 (graphics, devel)
...

./lib/ImageMagick-6.9.11/modules-Q16/coders/heic.la 

just typing


$ convert Appearance.heic Appearance.png

worked !



> Am 25.09.2020 um 22:44 schrieb Dave Allured - NOAA Affiliate via 
> macports-users :
> 
> Short answer, that is being considered, and it will take some work.  Details 
> in the ticket showed below by Ruben:
> https://trac.macports.org/ticket/51310 
> 
> 
> 
> On Fri, Sep 25, 2020 at 2:10 PM Fred Weinhaus  > wrote:
> Why not just offer both ImageMagick 6 and Imagemagick 7. The user could then 
> choose which he wants to use.
> 
> Fred
> 
> 
>> On Sep 25, 2020, at 1:02 PM, Sean DALY > > wrote:
>> 
>> Dave - that is my understanding, but I haven’t tested it. I have a ton of 
>> scripts and code snippets which would break with IMv7 and my Macs also run 
>> older OSes so I am not in a rush to move to IMv7. I use sips often in 
>> conjuction with imagemagick, the sips color profile and metadata handling is 
>> excellent
>> 
>> Sean
>> 
>> 
>> On Friday, September 25, 2020, Dave Allured - NOAA Affiliate via 
>> macports-users > > wrote:
>> Sean,
>> 
>> "possible to invoke the previous parser" -- Do you mean that some of the 
>> IMv6 commands can be used with IMv7, simply by prefixing with "magick" and a 
>> space?  I wonder how many of the many ports depending on IMv6 could be 
>> satisfied with this simple patch.
>> 
>> 
>> On Fri, Sep 25, 2020 at 12:32 PM Sean DALY > > wrote:
>> Hi Christoph,
>> 
>> I use imagemagick every day and IMv7 introduces a number of changes, in 
>> particular the "magick" command which replaces the previous "identify", 
>> "convert", "montage", "composite" etc. commands. The CLI parser has been 
>> rewritten and following the previous CLI parameters order will not work. It 
>> is however possible to invoke the previous parser using "magick convert" or 
>> "magick composite" for example.
>> 
>> As an alternative, if you are on a Mac running OSX v10.13 or later, for HEIF 
>> files use the OSX sips (Scriptable Image Processing System) tool, e.g.:
>> 
>> # inspect file properties
>> $ sips --getProperty allheic_image.heic
>> 
>> # convert to JPEG
>> $ sips --setProperty format jpeg heic_image.heic --setProperty formatOptions 
>> high --out heic_image.jpg
>> 
>> sips is a good companion to imagemagick's convert for raster formats, it is 
>> fast and offers a number of features.
>> 
>> As IM have stated they will support IMv6 for another ten years, it's 
>> probably best to not rush to IMv7 considering the number of changes
>> 
>> Sean
>> 
>> 
>> On Fri, Sep 25, 2020 at 11:59 AM Ruben Di Battista 
>> mailto:rubendibatti...@gmail.com>> wrote:
>> Moreover, HEIC format seems to be included here:
>> https://github.com/macports/macports-ports/pull/6021 
>> 
>> 
>> Are there any problems?
>> 
>> On Fri, Sep 25, 2020 at 5:58 PM Ruben Di Battista
>> mailto:rubendibatti...@gmail.com>> wrote:
>> >
>> > Hello Christoph,
>> >
>> > here's there's a discussion about version 7:
>> > https://github.com/macports/macports-ports/pull/5014 
>> >  and here
>> > https://trac.macports.org/ticket/51310 
>> > . It probably will be provided
>> > as a separate port.
>> >
>> > On Fri, Sep 25, 2020 at 5:40 PM Christoph Kukulies > > > wrote:
>> > >
>> > > I was seeking for a means to convert Apples new HEIC/HEIF format to more 
>> > > traditional formats and I always remembered  ImageMagick being a good 
>> > > choice for that.
>> > > Unfortunately the macports version is quite outdated.
>> > > 6.9.11-29
>> > >
>> > > vs. 7.0.10-30 being the latest.
>> > >
>> > > How can I get a newer version via macports?
>> > >
>> > > —
>> > > Christoph



smime.p7s
Description: S/MIME cryptographic signature


Re: ImageMagick port outdated

2020-09-30 Thread Ryan Schmidt



On Sep 29, 2020, at 23:56, Uli Wienands wrote:

> On 9/29/20 12:20 PM, Ryan Schmidt wrote:
>> On Sep 29, 2020, at 12:04, Ryan Schmidt wrote:
>> 
>>> On Sep 28, 2020, at 10:52, Ryan Schmidt wrote:
 
> And I am on OS X 10.6.8 on this machine; forgot to say that upfront.
 Ok. I'll see if I can test on 10.6.
>>> Well it works for me on 10.6 too.
>>> 
>>> You could try adding the -verbose flag when you invoke convert but I'm not 
>>> sure it would tell us much more.
>> Do still show us the contents of the .la file:
>> 
>> cat /opt/local/lib/ImageMagick-6.9.11/modules-Q16/coders/heic.la
>> 
>> Maybe there is an obvious error in there.
>> 
>> 
>> When I search Google, I do see lots of reports of the "convert: unable to 
>> load module" "file not found" error from lots of other people who are sure 
>> the file exists, so the error message appears to indicate any problem 
>> loading that module, not necessarily due to the file being absent. Many 
>> people end up finding that there was a problem with one of the libraries 
>> that the module depends on. MacPorts rev-upgrade should identify such 
>> problems and rebuild any broken ports. If you've disabled the automatic use 
>> of rev-upgrade, try running it manually now with "sudo port rev-upgrade". 
>> Maybe it will find that ImageMagick or one of its dependencies needs to be 
>> rebuilt and then it might work.
>> 
> Ok, here is my heic.la. No clue what his is; I thought .la are library 
> files...

They are text files created by libtool and appear to describe the library. 
Before the release of OS X we determined that .la files were unnecessary for 
MacPorts generally so we remove them on 10.9 and later. ImageMagick however 
uses these files to load its modules, so we keep these files for the 
ImageMagick port and a couple others.


> Uli
> 
> macbook-pro:Pictures uli$ cat 
> /opt/local/lib/ImageMagick-6.9.11/modules-Q16/coders/heic.la
> # heic.la - a libtool library file
> # Generated by libtool (GNU libtool) 2.4.6
> #
> # Please DO NOT delete this file!
> # It is necessary for linking the library.
> 
> # The name that we can dlopen(3).
> dlname='heic.so'
> 
> # Names of this library.
> library_names='heic.so heic.so'
> 
> # The name of the static archive.
> old_library=''
> 
> # Linker flags that cannot go in dependency_libs.
> inherited_linker_flags='  -pthread'
> 
> # Libraries that this one depends upon.
> dependency_libs=''
> 
> # Names of additional weak libraries provided by this library
> weak_library_names=''
> 
> # Version information for heic.
> current=0
> age=0
> revision=0
> 
> # Is this an already installed library?
> installed=yes
> 
> # Should we warn about portability when linking against -modules?
> shouldnotlink=yes
> 
> # Files to dlopen/dlpreopen
> dlopen=''
> dlpreopen=''
> 
> # Directory that this library needs to be installed in:
> libdir='/opt/local/lib/ImageMagick-6.9.11/modules-Q16/coders'
> 


Ok, that's identical to mine, so there's no problem there.