Author: andre Date: 2009-12-19 10:18:42 +0100 (Sat, 19 Dec 2009) New Revision: 40272
Added: openimages/trunk/src/main/config/builders/resources/ openimages/trunk/src/main/config/builders/resources/images.xml Log: allow for (allmost) unlimited size of images Added: openimages/trunk/src/main/config/builders/resources/images.xml =================================================================== --- openimages/trunk/src/main/config/builders/resources/images.xml (rev 0) +++ openimages/trunk/src/main/config/builders/resources/images.xml 2009-12-19 09:18:42 UTC (rev 40272) @@ -0,0 +1,288 @@ +<?xml version="1.0" ?> +<builder + xmlns="http://www.mmbase.org/xmlns/builder" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.mmbase.org/xmlns/builder + http://www.mmbase.org/xmlns/builder.xsd" + name="images" maintainer="mmbase.org" version="1" extends="object"> + + <class>org.mmbase.module.builders.Images</class> + + <searchage>31</searchage> + <names> + <singular xml:lang="en">Image</singular> + <singular xml:lang="fr">Image</singular> + <singular xml:lang="nl">Afbeelding</singular> + <singular xml:lang="eo">Bildo</singular> + <singular xml:lang="it">Immagine</singular> + + <plural xml:lang="en">Images</plural> + <plural xml:lang="fr">Images</plural> + <plural xml:lang="nl">Afbeeldingen</plural> + <plural xml:lang="eo">Bildoj</plural> + <plural xml:lang="it">Immagini</plural> + </names> + + <descriptions> + <description xml:lang="en">Images</description> + <description xml:lang="fr">Images</description> + <description xml:lang="nl">Afbeeldingen</description> + <description xml:lang="eo">Bildoj</description> + <description xml:lang="it">Immagini</description> + </descriptions> + + <properties> + <!-- convert using JAI http://java.sun.com/products/java-media/jai/index.html + NOTE: not all features provided by ImageMagic are implemented in the JAI converter --> + <!-- <property name="ImageConvertClass">org.mmbase.util.images.JAIImageConverter</property> --> + + <!-- convert using ImageMagick --> + <property name="ImageConvertClass">org.mmbase.util.images.ImageMagickImageConverter</property> + <!-- Defaults to 'convert' or 'convert.exe' on windows systems --> + <!-- + <property name="ImageConvert.ConverterCommand">convert</property> + --> + <property name="ImageConvert.ConverterRoot"></property> + + <!-- + The convert 'Method' is relevant for the ImageMagickImageConverter class. It can be + 'launcher' or 'connector'. If launcher (default), then the convert binary will be started + in the current JVM (which may give issues with memory). If 'connector' then it will connect + to the 'command server' which will do the launching. This is ussually a small JVM on the + same machine which is listening to a certain TCP port. + See also ImageConvert.Host and ImageConvert.Port. + + --> + <property name="ImageConvert.Method">launcher</property> + <!-- + If ImageConvert.Method is connector, then the following two properties specify where to + connect to. Default is localhost:1679. + --> + <!-- + <property name="ImageConvert.Host">localhost</property> + <property name="ImageConvert.Port">1679</property> + --> + + <property name="ImageConvert.DefaultImageFormat">asis</property> <!-- The default format of icache-objects. Defaults to jpeg if this option is missing here. 'asis' means, same format as the images object --> + + <!-- convert using ImageMagick example for windows --> + <!-- + <property name="ImageConvertClass">org.mmbase.util.images.ImageMagickImageConverter</property> + <property name="ImageConvert.ConverterCommand">convert.exe</property> + <property name="ImageConvert.ConverterRoot">C:\Program Files\ImageMagick-5.5.7-Q8\</property> + --> + + <!-- Dummy converter when both ImageMagick and JAI are unavailable. + This converter ignores all image-altering features and simply returns the original image. + --> + <!-- <property name="ImageConvertClass">org.mmbase.util.images.DummyImageConverter</property> --> + + <!-- + The 'ImageInformerClass' is the implementation of org.mmbase.util.image.ImageInformer which + is used to calculate height and width from byte-arrays. The default 'dummy' implementation + uses a simple java implementation and works pretty well. + Implementations based on JAI or on the 'identify' binary of ImageMagick are available too. + --> + <property name="ImageInformerClass">org.mmbase.util.images.DummyImageInformer</property> + + <!-- generic properties for all converters --> + <property name="MaxConcurrentRequests">3</property> + <property name="DefaultImageType">jpg</property><!-- used if determination of image-type failed --> + + <!-- Whether to check for 'legacy' CKeys (that is where the +ses are removed) Not needed for new + sites. Probably also not needed for old sites, certainly not if they runned for a while + with LegacyCKey on true. + --> + <property name="LegacyCKey">false</property> + + <!-- + Maximal size of produces icaches. A million square pixels. (1000x1000). That should be + plenty big enough for the web, but you may want to increase or decrease this. Defaults to + Integer.MAX_VALUE. If an image conversion would lead to a predicted dimension with an area + bigger that this, an IllegalArgumentException is thrown. + --> + <!-- <property name="MaxArea">10000000</property> --> + + <property name="wiki_inlinecreate">true</property> <!-- indicate to wiki's that this typically can be created 'inline' --> + + <property name="Content-Disposition">inline</property> + </properties> + + <fieldlist> + + <field name="title"> + <descriptions> + + <description xml:lang="en">Title of the image</description> + <description xml:lang="nl">Titel van de afbeelding</description> + </descriptions> + <gui> + <guiname xml:lang="en">Title</guiname> + <guiname xml:lang="fr">Titre</guiname> + <guiname xml:lang="nl">Titel</guiname> + <guiname xml:lang="eo">Titolo</guiname> + <guiname xml:lang="it">Titolo</guiname> + </gui> + <editor> + <positions> + <list>1</list> + </positions> + </editor> + <datatype base="line" xmlns="http://www.mmbase.org/xmlns/datatypes"> + <maxLength value="255" enforce="never"/> + </datatype> + </field> + + <field name="description"> + <descriptions> + <description xml:lang="en">Description of the image</description> + <description xml:lang="nl">Omschrijving van de afbeelding</description> + </descriptions> + <gui> + <guiname xml:lang="en">Description</guiname> + <guiname xml:lang="fr">Description</guiname> + <guiname xml:lang="nl">Omschrijving</guiname> + <guiname xml:lang="eo">Priskribo</guiname> + <guiname xml:lang="it">Descrizione</guiname> + </gui> + <editor> + <positions> + <list>3</list> + </positions> + </editor> + <datatype base="field" xmlns="http://www.mmbase.org/xmlns/datatypes"> + <maxLength value="1024" enforce="never"/> + </datatype> + </field> + + <field name="handle"> + <descriptions> + <description xml:lang="en">The image itself (binary data)</description> + <description xml:lang="nl">De afbeelding zelf (binaire data)</description> + </descriptions> + <gui> + <guiname xml:lang="en">Image</guiname> + <guiname xml:lang="fr">Image</guiname> + <guiname xml:lang="nl">Afbeelding</guiname> + <guiname xml:lang="eo">Bildo</guiname> + <guiname xml:lang="it">Immagine</guiname> + </gui> + <editor> + <positions> + <list>2</list> + </positions> + </editor> + <datatype base="binary" xmlns="http://www.mmbase.org/xmlns/datatypes"> + <property name="validMimeTypes" value="image/.*" /> + <maxLength value="16777215" enforce="never"/> + <commitprocessor> + <class name="org.mmbase.datatypes.processors.BinaryCommitProcessor"> + <param name="contenttypeField">itype</param> + <param name="itype">true</param> + </class> + </commitprocessor> + </datatype> + </field> + + <field name="itype" state="system"> + <descriptions> + <description xml:lang="en">Mimetype of the image</description> + <description xml:lang="nl">Mimetype van de afbeelding</description> + </descriptions> + <gui> + <guiname xml:lang="en">Imagetype</guiname> + <guiname xml:lang="fr">Imagetapent</guiname> + <guiname xml:lang="nl">Afbeeldingstype</guiname> + <guiname xml:lang="eo">Bildotipo</guiname> + <guiname xml:lang="it">Immaginetipo</guiname> + </gui> + <datatype base="eline" xmlns="http://www.mmbase.org/xmlns/datatypes"> + <maxLength value="32" enforce="never"/> + </datatype> + </field> + + <field name="filesize" state="system"> + <descriptions> + <description xml:lang="en">Filesize of the image</description> + <description xml:lang="nl">Filegrootte van de afbeelding</description> + </descriptions> + <gui> + <guiname xml:lang="en">Size</guiname> + <guiname xml:lang="nl">Grootte</guiname> + <guiname xml:lang="fr">Taille</guiname> + <guiname xml:lang="eo">Grando</guiname> + <guiname xml:lang="it">Dimensione</guiname> + </gui> + <editor> + <positions> + <list>5</list> + </positions> + </editor> + <datatype base="filesize" xmlns="http://www.mmbase.org/xmlns/datatypes" /> + </field> + <field name="width" state="system"> + <descriptions> + <description xml:lang="en">Width of the image in pixels</description> + <description xml:lang="nl">Breedte van de afbeelding in pixels</description> + </descriptions> + <gui> + <guiname xml:lang="en">Width</guiname> + <guiname xml:lang="nl">Breedte</guiname> + <guiname xml:lang="eo">Larĝo</guiname> + </gui> + <datatype base="integer" xmlns="http://www.mmbase.org/xmlns/datatypes"> + <minInclusive value="0" /> + </datatype> + </field> + <field name="height" state="system"> + <descriptions> + <description xml:lang="en">Height of the image in pixels</description> + <description xml:lang="nl">Hoogte van de afbeelding in pixels</description> + </descriptions> + <gui> + <guiname xml:lang="en">Height</guiname> + <guiname xml:lang="nl">Hoogte</guiname> + <guiname xml:lang="eo">Alto</guiname> + </gui> + <datatype base="integer" xmlns="http://www.mmbase.org/xmlns/datatypes"> + <minInclusive value="0" /> + </datatype> + </field> + <field name="filename"> + <descriptions> + <description xml:lang="en">Original filename of attachment if it was an uploaded file</description> + <description xml:lang="nl">Oorspronkelijke bestandsnaam als de bijlage een ge-upload bestand betreft</description> + </descriptions> + <gui> + <guiname xml:lang="en">Filename</guiname> + <guiname xml:lang="nl">Bestandsnaam</guiname> + <guiname xml:lang="eo">Dosiernomo</guiname> + </gui> + <datatype base="filename" xmlns="http://www.mmbase.org/xmlns/datatypes"> + <maxLength value="255" enforce="never"/> + </datatype> + </field> + + <!-- + If you use this field, then you ensure that no duplicate images can be uploaded. + --> + <!-- + <field name="checksum" state="system"> + <descriptions> + <description xml:lang="en">Checksum of byte array, which allows for uniqueness checking</description> + <description xml:lang="nl">Checksum van de bytes, hiermee kan men controleren of een afbeelding al bestaat</description> + </descriptions> + <gui> + <guiname xml:lang="en">Checksum</guiname> + <guiname xml:lang="nl">Checksum</guiname> + </gui> + <datatype base="checksum" xmlns="http://www.mmbase.org/xmlns/datatypes" > + <unique value="true" /> + <maxLength value="255" enforce="never"/> + </datatype> + </field> + --> + + </fieldlist> + +</builder> _______________________________________________ Cvs mailing list Cvs@lists.mmbase.org http://lists.mmbase.org/mailman/listinfo/cvs