This is my IMatch-Scriptsection!

You can find some (maybe) useful scripts for Mario Westphals IMatch.
IMatch is a very powerfull Image-Management/Database-Software.

If you don't know it, have a look at http://www.photools.com/

 

These Scripts can be used any way, but also without any kind of warranty!

If you don't agree, please leave now.


|  Overview  |  Sitemap  |  Downloads  |   last update: June 12, 2022


newScriptTeaser, a little Winkyman = new Script      updatedScriptTeaser, a little Winkyman = updated Script

DB-Organization:

Multi Database Transmission V 1.2 (06-Jun-2003) - This script transmits Images from a SourceDB to a TargetDB, preserving all Category-Assignments and Property-Entries. (And, *g*, if Mario would give us an updated Timestamp for the DatabaseImageRecords, we could merge Databases by checking which Entry is newer. Think about mobile IMatch.)

Remove Empty Categories from Database V 1.0 (30-May-2003) - This script removes all 'empty'-Categories from the active Database.

OffLineCache Garbage Collector V 1.0 (28-Jun-2003) - This script checks all existing Images in OfflineCacheFolder of the active Database and deletes ownerless OLC-Images. Additionally you can select some Categories from which you want delete the Images OfflineCache-pendants.

 

Image-Manipulation:

Photoshop Conversion (PS 5.5 + 6) V 0.9 (02-Jul-2003) - This Script combines the ManagementPower of IMatch with the ImageManipulationPower of Adobes Photoshop 6.0 in an easy to use way. This Script I have written together with Klaus Schwarzburg. Many thanks for your help, Klaus.

lcms Webgallery Creator V 0.1 (05-Oct-2002) - This script enhance the original Webgallery-Creator-Script with an ICC-Conversion-feature.

little Batch Converter V 1.2 (26-Jun-2003) - This script create resized copies, optionally with ICC-Conversion for Tiff- and Jpeg-sources. Can work with OfflineCacheImages instead of originals and can transmit all Property-, Category- and IPTC-data to the copies.

 

Libs

Registry Functions V 1.0 (01-Nov-2002) - A littleHelper-Script to put and retrieve Data to/from Registry in its correct DataTypes. VB usually provides only the StringType. With this Lib you can store every DataType to Registry (Byte, Integer, Long, Double, Decimal, Boolean, Variant, ...).

Debug Messages V 1.0 (08-Nov-2002) - A littleHelper-Script which handles Debugoutput in Priorityclasses. With this you can have good Informationoutput when you develope a Script and a less or no Output when run the Script in Productivity-Mode. Your DebugmessagePoints can stay in code without any (auswirkung). Usefull for future changes on your code.

 

 


This is my first Script.
It enhance the original Webgallery Creator Script with an ICC-ConversionFeature.

To deal with ICC-profiles we can use openSource software of 'the little cms project'.
For converting TIFF- and JPEG-files between different colorspaces we need the two commandline tools tifficc.exe and jpegicc.exe.

To set your Webgallery-Creator ready to deal with ICC-profiles you also need my enhanced Webgallery Creator Script.
To let you run the original and the new script parallel, i have added a '_hn273' to every filename. So you can copy these files into your IMatch-scriptfolder and no existing files or features will be changed.

Ok, for those who know: I've worked with the imwg-files created by ks and djb which are available in the userscript-download-section. So if you use this one and want to work with my new one too, you only need my new one, because if you leave all additional-feature-checkboxes unchecked, it operates like the original one.

The two original Scripts (imwg_main.bas + imwg_core.cls) are from the author of IMatch, Michael Westphal. He shipped them with IMatch as ScriptingExamples.


Explanation
MainScript: New_Part_of_CreateBitmapFunction.txt
Needed Modules: [ICC_ConversionFunction.txt]



How to use this Script:

1) Unzip the package and copy the files to your IMatch Scriptfolder.
In the Scriptfolder itself must be three files:
- imwg_main_hn273.bas
- imwg_main_hn273.bai
- imwg_core_hn273.cls

2) In Imatch Menu under Scripting -> Scripts -> IMatch WebPublishing you will find the original Webgallery Creator and the enhanced Version named Webgallery-Creator +lcms. If you select this, the Webgallery-Creator-Dialog with the additional Features appears instead of the original one.

3) At the first start you must type in some informations in setup-dialog.
(The Pathnames to the lcms-commandlinetools and the output-icc-profile).


What features are available?



Here you can select what features you want to apply to your images during creationprocess.

The info-button gives you a basic info and a link to this page.

ICC)
In the setupdialog you have to specify the pathnames to the little cms commandline tools and the sRGB.icm-file.

IPTC)
If your source-images contains IPTC-data you can transfer this into the new files.

no OID)
Attention! Use this very carefully. There is no control which handles double filenames for the destinationfiles. Only if you know at 100% that the imagecollection you will create may not result in doublefilenames, you should use this.

It creates the files like this sheme: prefix - originalfilename - .jpg

Prefix is the name of the Imagelist like it is defined in your template files for the IMatch Web Gallery (*.wpg1)
ImageList=thumb:120
ImageList=popup:460
will result in thumb_originalfilename.jpg and popup_originalfilename.jpg!

To get short filenames you also can use:
ImageList=t:120
ImageList=p:460
(will result in t_originalfilename.jpg and p_originalfilename.jpg)


Additional Informations

Features and parameters of the little cms conversion tools:

little cms ICC profile applier for TIFF - v2.1

	usage: tifficc [flags] input.tif output.tif

	flags:

	-v - Verbose
	-i - Input profile (defaults to sRGB)
	-o - Output profile (defaults to sRGB)
	-l - Transform by device-link profile
	-t<0,1,2,3> - Intent (0=Perceptual, 1=Colorimetric, 2=Saturation, 3=Absolute)

	-w - Wide output (generate 16 bps tiff)
	-b - Black/White compensation
	-n - Ignore embedded profile
	-c<0,1,2> - Precalculates transform (0=off, 1=normal, 2=Hi-res) [defaults to 1]

	-p - Soft proof profile
	-g - Marks out-of-gamut colors on softproof

	-h<0,1,2> - More help



little cms ICC profile applier for JPEG - v1.0

	usage: jpegicc [flags] input.jpg output.jpg

	flags:

	-v - Verbose
	-i - Input profile (defaults to sRGB)
	-o - Output profile (defaults to sRGB)
	-t<0,1,2,3> - Intent (0=Perceptual, 1=Colorimetric, 2=Saturation, 3=Absolute)

	-b - Black/White compensation
	-n - Ignore embedded profile
	-c<0,1,2> - Precalculates transform (0=off, 1=normal, 2=Hi-res) [defaults to 1]

	-p - Soft proof profile
	-g - Marks out-of-gamut colors on softproof

	-h<0,1,2> - More help