Image Resizing with ImageMagick
Intrexx automatically resizes uploaded images in various places, such as in the file selection or file sorting features. You can find these two elements in the "Applications" module.
Alternatively, Intrexx can also use ImageMagick for scaling. If you have ImageMagick installed on your system, we'll show you here which installation methods are available.
1.
Environment VariableSet the "MAGICK_HOME" system environment variable to the Intrexx installation directory.
2. System property
You can set this property using the "portal.wcf" file, which is located in the "internal/cfg" directory of the Intrexx portal. The "de.uplanet.imagemagick.convert" property must be set to the executable you want to use (magick.exe, 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.
macOS
/usr/local/bin/convert
/opt/local/bin/convert Linux
/usr/bin/convert Windows
%ProgramFiles%\ImageMagick*\ Check whether Intrexx is using ImageMagick
When ImageMagick is used for the first time, Intrexx logs an "INFO" message in the portal log file. If you want to check whether Intrexx is using ImageMagick, you must restart the portal service. Next, resize any image—for example, by uploading the image using the file selector to automatically generate a thumbnail. The corresponding INFO is then written to the portal.log file. Here is an example of an 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
You can use the "refreshfilemetadata.bat" file, located in the "bin/windows" directory of the installation, to delete existing thumbnails. As soon as the old thumbnail is accessed again in the browser, the new thumbnail is generated.
To do this, right-click the Command Prompt (cmd) to run it as an administrator. Then enter the path to the "refreshfilemetadata.bat" file, followed by a space, and then the path to the portal.
Example:
c:\intrexx\bin\windows\refreshfilemetadata.bat c:\intrexx\org\portal