http://epaperpress.com/ptlens/
The software functions by reading EXIF data and, based on this information, determines the camera, lens, and focal length, and automatically corrects lens distortion.
The plug-in is compatible with Photoshop on both the Mac and PC. Unfortunately, EXIF data is not available for plug-ins under PSP. Without EXIF data the user must manually enter camera make, model, lens, and lens focal length. This is a bit onerous for users with zoom lenses.
Work at your end, assuming you have access to a pointer to EXIF data, is trivial. I estimate less than one hour of developer time. As a result, users will have access to automatic correction for distortion via the PTLens plug-in.
I am willing to work with a developer on your end to see this feature implemented in your software.
Technical information follows.
.
intptr_t simpProp;
Handle compProp;
int32 rc;
int32 size;
uint8 *exif = NULL;
rc = getProperty(0x3842494D, propEXIFData, 0, &simpProp, &compProp);
if (rc == 0) {
size = getSize(compProp);
if (size) {
exif = (uint8 *)lock(compProp, false);
if (exif) {
processExif(exif, size);
unlock(compProp);
}
}
dispose(compProp);
if (!exif) return;
}
A call to getProperty returns zero, indicating all is okay. But a call to getSize returns zero, indicating no EXIF data. I tried a different approach. A PSP script, to obtain EXIF data, was successful. But there is no way to pass this information to a plug-in.
Setting an environment variable in the script, and reading the variable in the plug-in, won't work because I need to set an environment variable in a parent process. This is not permitted.
Writing a file from the script, and then reading it back in the plug-in, doesn't work because the script is running in a protected environment where writing files is not allowed.
