Image scaling with ImageMagick
Intrexx automatically scales uploaded images at various points, such as in the file selection or file sorting. Both of these elements are available in the Applications module.
Alternatively, Intrexx can also use ImageMagick to scale them. If you have ImageMagick installed on your system, we will show you which installation options are possible here:
1. Environment variable
Set the system environment variable "MAGICK_HOME" to the Intrexx installation directory.
2. System property
A property can be written via the file "portal.wcf"; this can be found in the Intrexx portal directory "internal/cfg". The property "de.uplanet.imagemagick.convert" must be set to the executable to be used (magick.exe or convert.exe or bin/convert). Example:
-Dde.uplanet.imagemagick.convert=/mypath/convert
More information: https://wrapper.tanukisoftware.com/doc/english/props-envvars.html#expansion
3. Installed in the default directory
If ImageMagick is installed in the default directory, Intrexx will automatically find it there.
mac OS
/usr/local/bin/convert
/opt/local/bin/convert
Linux
/usr/bin/convert
Windows
%ProgramFiles%\ImageMagick*\
Check if ImageMagick is used by Intrexx
Intrexx makes an INFO entry in the portal log file the first time ImageMagick is used. If you want to check whether Intrexx uses ImageMagick, you have to restart the portal service. Then scale any image, e.g. by uploading the image with a file selection, which automatically creates a thumbnail. The corresponding INFO entry is then written to the portal.log. Here is an example of the entry in the portal.log:INFO 2021-07-27T07:46:38,295Z - de.uplanet.lucy.server.util.image.ImageUtil[http-nio-0.0.0.0-1337-exec-7]
ImageMagick has been found.
Renew / delete thumbnails
Existing thumbnails can be deleted with the file "refreshfilemetadata.bat", which you can find in the installation directory "bin/windows". As soon as the old thumbnail is called up again in the browser, the new thumbnail is created.
To do this, start the command prompt (cmd) with a right click to run it as administrator. Then enter the path to the file "refreshfilemetadata.bat", then a space and then the path to the portal.
Example:
c:\intrexx\bin\windows\refreshfilemetadata.bat c:\intrexx\org\portal