Hello,
Just an idea,
You could for example call imagemagick converter through a RunExec command. You should have all the image magick parameters

Mark Lundquist a écrit :
  
-----Original Message-----
From: Grzegorz Tañczyk [mailto:[EMAIL PROTECTED]]

Hello george,

  ImageReader should be improved because two parameters: width and
  height funcionality is limited:
     * The behavior is the following: if both the new width and
height values
     * are positive, the image is rescaled according to these new
values and
     * the original aspect ration is lost.
     * Otherwise, if one of the two parameters is zero or negative, the
     * aspect ratio is maintained and the positive parameter indicates the
     * scaling.
     * If both new values are zero or negative, no scaling takes
place (a unit
     * transformation is applied).
  There should be aditional parameter "keepRatio", because it is
  impossible to guess if uploaded image is wider or higher. For
  example I want to make thumbnails not wider than then 100 and not
  higher than 70.
    

There is a patch for this:
http://issues.apache.org/bugzilla/show_bug.cgi?id=30417

For some reason that I lost track of, this hasn't been committed yet...
thanks for the reminder and I will try to get that loose end tied up :-)

Note, there are two patch files there... take only the second one.

  
Tuesday, January 11, 2005, 8:32:59 AM, you wrote:
gg> You can achieve the same result by chaining the already existing
gg> imagereader with the databasereader, thus having the
databasereader read
gg> the image and the imagereader scale it.
    

Yes, that is totally the way to do it.

HTH,
-ml-



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  


-- 

Jean-Christophe Kermagoret
[EMAIL PROTECTED]

--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to