Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #34396

Re: Bash script with Image Magick to a Java program

From Arne Vajhøj <arne@vajhoej.dk>
Newsgroups comp.lang.java.programmer
Subject Re: Bash script with Image Magick to a Java program
Date 2016-05-26 22:06 -0400
Organization Aioe.org NNTP Server
Message-ID <ni8a27$t0j$1@gioia.aioe.org> (permalink)
References <87oa7s4f1u.fsf@Equus.decebal.nl>

Show all headers | View raw


On 5/26/2016 6:42 PM, Cecil Westerhof wrote:
> I have a Bash script that is more as a decade old which I use Image
> Magick to convert Photos to various other formats. For a long time I
> wanted to change this. I am thinking about porting to a Java
> application. Java has two libraries for Image Magick: Jmagick and
> im4java. But Java has also its own functions to process graphics.
> Would it be better to use the Java functions (no dependencies) or
> Image Magick. If the latter: which is the better library?

If your conversion is so simple that it is easily done with standard
Java library, then I suggest you go for it.

But I suspect that it may not be sufficient. These wrappers do not
exist because it is easy to do the same in Java without them.

:-)

Regarding Jmagick vs im4java, then they do different things. Jmagick is
a JNI wrapper to ImageMagick C API. im4java is a programmer friendly
interface to run the ImageMagick program with certain arguments.

You know that functionality exposed via ImageMagick program is
sufficient because that is what you do today, so im4java must be
the obvious choice for you.

Arne


Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Bash script with Image Magick to a Java program Cecil Westerhof <Cecil@decebal.nl> - 2016-05-27 00:42 +0200
  Re: Bash script with Image Magick to a Java program Jerry Stuckle <jstucklex@attglobal.net> - 2016-05-26 20:45 -0400
    Re: Bash script with Image Magick to a Java program Cecil Westerhof <Cecil@decebal.nl> - 2016-05-27 11:01 +0200
  Re: Bash script with Image Magick to a Java program Arne Vajhøj <arne@vajhoej.dk> - 2016-05-26 22:06 -0400
    Re: Bash script with Image Magick to a Java program Cecil Westerhof <Cecil@decebal.nl> - 2016-05-27 11:06 +0200
      Re: Bash script with Image Magick to a Java program Martin Gregorie <martin@address-in-sig.invalid> - 2016-05-27 10:00 +0000
        Re: Bash script with Image Magick to a Java program Cecil Westerhof <Cecil@decebal.nl> - 2016-05-27 13:31 +0200
          Re: Bash script with Image Magick to a Java program Eric Douglas <e.d.programmer@gmail.com> - 2016-05-27 05:15 -0700
            Re: Bash script with Image Magick to a Java program Cecil Westerhof <Cecil@decebal.nl> - 2016-05-27 15:18 +0200
          Re: Bash script with Image Magick to a Java program Duncan Idaho <duncan@dunenoemail.com> - 2016-05-27 18:51 +0100
            Re: Bash script with Image Magick to a Java program Martin Gregorie <martin@address-in-sig.invalid> - 2016-05-27 18:02 +0000
              Re: Bash script with Image Magick to a Java program Cecil Westerhof <Cecil@decebal.nl> - 2016-05-27 23:23 +0200
            Re: Bash script with Image Magick to a Java program Cecil Westerhof <Cecil@decebal.nl> - 2016-05-27 23:18 +0200
              Re: Bash script with Image Magick to a Java program Duncan Idaho <duncan@dunenoemail.com> - 2016-05-28 08:03 +0100
      Re: Bash script with Image Magick to a Java program Arne Vajhøj <arne@vajhoej.dk> - 2016-05-27 17:59 -0400
  Re: Bash script with Image Magick to a Java program Brixomatic <brixomatic@yahoo.com> - 2016-05-29 17:28 +0200
  Re: Bash script with Image Magick to a Java program Eric Douglas <e.d.programmer@gmail.com> - 2016-06-14 10:25 -0700

csiph-web