<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Let me add the requirements I see for the "graphics" library:<br>
<br>
a) sizing/scaling of pictures<br>
b) potentially cropping (starting from one corner or so)<br>
c) sharpening of pictures<br>
d) converting formats, specifically TIFF-JPEG, PDF-JPEG<br>
e) adding an inprint into a picture (i.e. adding the zwischengas logo
or (c) zwischengas or something like this)<br>
f) adding an inprint into a PDF (i.e. adding the zwischengas logo and a
user specific number or so) --- this may be beyond of what any graphics
library can do<br>
g) changing JPEG data reduction factor for JPEGs<br>
<br>
There may be more. But if imagemagic can help us better to do these
things than another library, then we should stick with imagemagic.<br>
<br>
Bruno<br>
<br>
Mehmet Birgi schrieb:
<blockquote
cite="mid:AANLkTinAW3MQIEMCxzRsiwqY2HrsmS951v4nOk3gvF19@mail.gmail.com"
type="cite">
<pre wrap="">On Fri, Jun 25, 2010 at 11:20 PM, Michael Wechner
<a class="moz-txt-link-rfc2396E" href="mailto:michael.wechner@wyona.com"><michael.wechner@wyona.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Mehmet Birgi wrote:
</pre>
<blockquote type="cite">
<pre wrap="">On Thu, Jun 24, 2010 at 11:10 PM, Michael Wechner
<a class="moz-txt-link-rfc2396E" href="mailto:michael.wechner@wyona.com"><michael.wechner@wyona.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Cedric Staub wrote:
</pre>
<blockquote type="cite">
<pre wrap="">On Thu, 24 Jun 2010 13:47:02 +0200
Mehmet Birgi <a class="moz-txt-link-rfc2396E" href="mailto:mehmet.birgi@wyona.com"><mehmet.birgi@wyona.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Question: is there a platform independent way to integrate this into
the Yanel build system?
</pre>
</blockquote>
<pre wrap="">I don't think there would be an easy way to do so, considering all the
diffrent flavors of Linux/Unix that are out there and the various
package
managers that they use (for example, aptitude only works on
Debian/Ubuntu
systems). What you could probably do is check if ImageMagick is
installed
and if not print a warning message;
</pre>
</blockquote>
<pre wrap="">well, I would assume that im4java throws an exception
@Memo: What does the log-file say if ImageMagick is not installed?
</pre>
</blockquote>
<pre wrap="">This is the error message Bruno had forwarded. In the log, there was
nothing special/different, as far as I can remember, only longer,, and
it was possible to see that the error originated in the method
resize() of ImageScaler, but I would have to reproduce the error to
get the whole thing, if you think it would help.
</pre>
</blockquote>
<pre wrap="">yes, I think it would help to reproduce this exception and check whether
there is a possibility
to catch this somehow nicely.
</pre>
</blockquote>
<pre wrap=""><!---->
OK, I will look into this.
</pre>
<blockquote type="cite">
<pre wrap="">Also you might want to consider sending an email to the im4java community
and ask there
how to deal with such a situation.
And last but not least I assume you are aware of
src/contributions/resources/image/resource.xml
right? This resource type allows scaling of jpg images and AFAIK it works
quite well.
</pre>
</blockquote>
<pre wrap=""><!---->
No. I wasn't aware. Frankly. I didn't check, as the custom
implementation was already done, and I just replaced the actual
resizing part. I will make a bugzilla entry in the customer project to
come back and check what there is, and maybe replace/use the existing
one. But only when we have a little more time, as for now the code is
working, and I would like to continue with other priorities ;-)
But many thanks for pointing this out.
Cheers,
Memo
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
______________________________
Bruno von Rotz
WYONA
Hardstrasse 219
CH-8005 Zürich
Switzerland
P: +41 44 272 91 61
F: +41 44 272 91 62
skype: wyona-switzerland
email: <a class="moz-txt-link-abbreviated" href="mailto:bruno.vonrotz@wyona.com">bruno.vonrotz@wyona.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.wyona.com">www.wyona.com</a> </pre>
</body>
</html>