Path: csiph.com!2.us.feeder.erje.net!feeder.erje.net!2.eu.feeder.erje.net!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Cecil Westerhof Newsgroups: comp.lang.java.programmer Subject: Re: Bash script with Image Magick to a Java program Date: Fri, 27 May 2016 11:06:16 +0200 Organization: Decebal Computing Lines: 40 Message-ID: <8760tz50qf.fsf@Equus.decebal.nl> References: <87oa7s4f1u.fsf@Equus.decebal.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: mx02.eternal-september.org; posting-host="12baf5125b19322b899c79c2e3878015"; logging-data="30784"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Xz7vCm5pbvobJqj+CoP9UrpAdd3iXs8k=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:iW9MgBZoqc9Djbpjjc3OSSnlzDA= sha1:vy1/LXrplBUa7ZJBDvnLGkGHyOo= X-Homepage: http://www.decebal.nl/ Xref: csiph.com comp.lang.java.programmer:34397 On Friday 27 May 2016 04:06 CEST, Arne Vajhøj wrote: > 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. > > :-) I evaluate things. Maybe I start with the standard library and as my program evolves I switch. At the moment I know nothing about graphical functionality in Java. > 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. But then people that are going to use my program need to install Image Magick. Or is this also the case when I am using Jmagick? -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof