Converting an image from one format to another
To convert an image from JPEG/JPG, PNG, GIF or BMP to one of the other formats, add the URL of the image to transform, the to/ command and a target filename in a different format to the image transformation URL.
Procedure
- Write the image transformation base URL, for example, http://localhost/cidpath/.
- Do one of the following:
- Append
source/followed by the alias of a location or image. If the alias refers to a location, also append a path (optionally) and a file name (mandatory). For example,source/logo,source/repository/myfile.jpgorsource/imageroot/myfolder/myfile.png. - Append the full URL of an image, for example,
www.example.com/images/example.gifor, if the URL uses the HTTPS protocol,https://www.example.com/images/example.gif.
- Append
- Append
/to/plus the desired target format to convert to, for example, /to/png. If you want, you can also provide a filename, say,/to/myfile.png. If you do, downloading the image in the browser will cause it to be saved as myfile.png.