Re: Creating a cut-down version of ImageJ for use in applets
Posted by
ctrueden on
URL: http://imagej.273.s1.nabble.com/Creating-a-cut-down-version-of-ImageJ-for-use-in-applets-tp3703052p3703054.html
Hi,
One easy way to identify the classes that will be required is to launch
ImageJ (or your alternate application) from the command line with the
"-verbose" command line flag. E.g.:
./jre/bin/java -mx512m -verbose -cp ij.jar ij.ImageJ > out.txt
Perform all of the operations you plan to use within ImageJ, then quit
the program. Open up the out.txt file and strip out lines not starting
with "[Loaded ij." The remaining lines represent a list of classes that
were required at some point during the program execution, and should
probably be bundled with your smaller JAR.
-Curtis
Mohana Ramaratnam wrote:
> Hi Aneesha,
>
> We use a subset of the ij jar for our applet. All you have to do is
> identify the required classes and create the smaller jar.
>
> Mohana
>
> Aneesha Bakharia wrote:
>
>> Hi
>>
>> I've been using the imagej jar for a few years in web
>> applications(Java and
>> Coldfusion) to perform routine image processing tasks such as thumbnail
>> creation, cropping, etc.
>>
>> My recent attention has turned to creating a very simple minamilist
>> applet
>> that can perform some basic image processing tasks. I have been using
>> imagej
>> for this but the 1.3Mb jar is too large for my use. The only features
>> that I
>> need are lighten, darken, flip, invert, crop, rotate, smooth and
>> sharpen. I
>> need some advice on home easy it would be to create a subset of
>> imagej for
>> use in applets.
>>
>> Many thanks.
>>
>> --
>> Aneesha
>