Hi Jerome, On 09/09/2009 09:05 AM, Jérôme Vieilledent wrote: > Hi everyone ! > I would like to know if there was a simple way to "guess" the right > extension file name for an image conversion. > In the doc tutorials, every examples output JPG, but I want to keep PNG, > with .png extension
you can ask a transformation which MIME type will be generated for a specific file and/or MIME type: http://ezcomponents.org/docs/api/latest/ImageConversion/ezcImageTransformation.html#getOutMime You then only need a simple mapping of MIME types to file extensions. HTH, regads, Toby -- Tobias Schlitt t...@ez.no GPG Key: 0xC462BC14 eZ Components Developer http://ezcomponents.org eZ Systems AS http://ez.no -- Components mailing list Components@lists.ez.no http://lists.ez.no/mailman/listinfo/components