Bric
Bric is a crossplatform multithreading batch image processor (Convert, Resize, Rotate and Watermark). Multiple file types are supported for input and output. Bric is a java based application which utilizes java image proccessing libraries Apache Sanselan, ImageIO and ImageJ.

Features
  • reads jpg, jpeg, png, gif, tiff, tif, bmp, pdf, psd (photoshop), pnm (raw), pnm (ascii), pbm, ppm, pgm, wbmp
  • writes jpg, jpeg, png, pnm. pgm, pbm, ppm, gif, bmp, tif, tiff, pdf
  • multithreading (incredibly fast)
  • convert, resize, rotate, watermark (image/text/html), merge pdf
  • easy watermark placement
  • random rotation
  • resize filters, rendering, sharpen
  • cross platform (Windows, Linux, Mac ...)

System requirements
  • Minimum JRE version is 1.6
  • Preferably 1024 x 768 resolution.


Bric on an eComStation machine with Open JDK


Installing Bric
Download the file Bric%20v0.8.0.jar. Create a folder (directory) "Bric" or something similar which fits your needs. Copy the jar file to this directory, but be sure to rename it to something without a space in the name.

The used Bric.cmd file
Bric works with Open JDK in OS/2-eCS, but there are still some minor issues like help and opening files. According the website its still beta. I have made a bric.cmd file with the following contents;
@echo off
set path=[drive: java]\JAVA160\bin
set BEGINLIBPATH=[drive: java]\JAVA160\bin
set CLASSPATH=
[drive: Bric]
cd [drive: Bric]\Bric
java -Xmx512m -Duser.home=[drive: Bric]\Bric -jar Bric_v0.8.0.jar 2>Bric_bugs.txt
I use 2 separate folders (directories), one for Java and one for Bric with the files created by this program. The references used in the cmd file;

  • [drive: java] = drive with Java
  • [drive: Bric] = drive with Bric

should be replaced by real drive letters. Adjust the file from the distribution below, ie. different drive and directories (maps). Save Bric.cmd and copy it to the Bric directory (map).

Create a new program object or copy it from the file below. Specify the path and file name: "[drive: Bric]\Bric\Bric.cmd". In the tabpage Session check the boxes "OS/2 window", "Running as an icon" and "Close Window to end program". In the tabpage General you can enter the name "Bric". The download also has a nice OS/2 icon.

Parameters / options explained
  • The specification "-Xmx512m" comes from the website. The "-Xmx512m" indicates the maximum limit.
  • The specification "-Duser.home=[drive: Bric]\Bric" will ensure that Bric will save all necessary files in own directory instead of saving them in the home directory. The temp directory from OS/2-eCS is used for the preview files, but this option is not working due to a wrong file call if I read the buglist right. So there are still some issues.
  • The addition "2>Bric_bugs.txt" ensures that errors are saved in the file "Bric_bugs.txt". The 2 in "2>" is not a typo!

Download
In the file you can find the above command file (all drive letters are on set to C:) and an OS/2 Bric icon: bric-ecs.zip.

revision May 23, 2016