Image scaling with ImageMagick
Intrexx automatically scales uploaded images in various places, 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 "portal.wcf" file, which you can find 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
Further information: https://wrapper.tanukisoftware.com/doc/english/props-envvars.html#expansion
3. Installed in the default directory
If ImageMagick is installed in a 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 whether ImageMagick is being used by Intrexx
Intrexx enters an INFO in the portal log file when ImageMagick is used for the first time. 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.
Refresh / delete thumbnails
The "refreshfilemetadata.bat" file, which can be found in the "bin/windows" installation directory, can be used to delete existing thumbnails. 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