Views
511
Replies
4
Status
Closed
I am developing a Photoshop file format plugin to read a file format called *.KAP using SDK version 5.0.
The problem I am having is that though Photoshop v5.0 will acknowledge my plugin, newer versions of Photoshop (7.1) and Photoshop elements (3.0) do not.
i.e. My file format does not show up in the OPEN dialog, and when I try to open I get a "wrong file type" error.
Now as I understand it Photoshop scans the contents of the Plugins directory and reads the resources of the files stored there looking for PiPL resources.
This leads me to conclude that I have screwed up my resource file somehow.
The format of the file that CnvtPiPL.exe accepts is a bit of a mystery to me so I was hoping that someone could either enlighten me as to what I have done wrong or point me to some documentation.
Alternatively, perhaps there is something more fundamental going on like a type of resource that the newer Photoshop programs are looking for that I don’t know about or some lack of backward compatibility.
I would really appreciate any help you could offer on the subject. Thanks,
Sean.
I have simply modified the example resource file it can be found here: http://awh1.Apocgraphy.com/download/SimpleFormat.r
The PiPL section is as follows:
resource ‘PiPL’ (ResourceID, plugInName " PiPL", purgeable) {
{
Kind { ImageFormat },
Name { plugInName },
Version { (latestFormatVersion << 16) | latestFormatSubVersion },
#if Macintosh
Code68K { ImageFormat, $$ID },
CodePowerPC { 0, 0, "" },
#endif
#if MSWindows
CodeWin32X86 { "ENTRYPOINT" },
#endif
// ClassID, eventID, aete ID, uniqueString:
HasTerminology { plugInClassID, plugInEventID, ResourceID, vendorName " " plugInName },
SupportedModes
{
noBitmap, noGrayScale,
doesSupportIndexedColor, noRGBColor,
noCMYKColor, noHSLColor,
noHSBColor, noMultichannel,
noDuotone, noLABColor
},
EnableInfo { "true" },
FmtFileType { ‘8B1F’, ‘8BIM’ },
//ReadTypes { { ‘8B1F’, ‘ ‘ } },
FilteredTypes { { ‘8B1F’, ‘ ‘ } },
ReadExtensions { { ‘KAP ‘ } },
WriteExtensions { { ‘KAP ‘ } },
FilteredExtensions { { ‘KAP ‘ } },
FormatFlags { fmtDoesNotSaveImageResources, fmtCanRead,
fmtCannotWrite, fmtCanWriteIfRead },
FormatMaxSize { { 32767, 32767 } },
FormatMaxChannels { { 1, 24, 24, 24, 24, 24,
24, 24, 24, 24, 24, 24 } }
}
};
The problem I am having is that though Photoshop v5.0 will acknowledge my plugin, newer versions of Photoshop (7.1) and Photoshop elements (3.0) do not.
i.e. My file format does not show up in the OPEN dialog, and when I try to open I get a "wrong file type" error.
Now as I understand it Photoshop scans the contents of the Plugins directory and reads the resources of the files stored there looking for PiPL resources.
This leads me to conclude that I have screwed up my resource file somehow.
The format of the file that CnvtPiPL.exe accepts is a bit of a mystery to me so I was hoping that someone could either enlighten me as to what I have done wrong or point me to some documentation.
Alternatively, perhaps there is something more fundamental going on like a type of resource that the newer Photoshop programs are looking for that I don’t know about or some lack of backward compatibility.
I would really appreciate any help you could offer on the subject. Thanks,
Sean.
I have simply modified the example resource file it can be found here: http://awh1.Apocgraphy.com/download/SimpleFormat.r
The PiPL section is as follows:
resource ‘PiPL’ (ResourceID, plugInName " PiPL", purgeable) {
{
Kind { ImageFormat },
Name { plugInName },
Version { (latestFormatVersion << 16) | latestFormatSubVersion },
#if Macintosh
Code68K { ImageFormat, $$ID },
CodePowerPC { 0, 0, "" },
#endif
#if MSWindows
CodeWin32X86 { "ENTRYPOINT" },
#endif
// ClassID, eventID, aete ID, uniqueString:
HasTerminology { plugInClassID, plugInEventID, ResourceID, vendorName " " plugInName },
SupportedModes
{
noBitmap, noGrayScale,
doesSupportIndexedColor, noRGBColor,
noCMYKColor, noHSLColor,
noHSBColor, noMultichannel,
noDuotone, noLABColor
},
EnableInfo { "true" },
FmtFileType { ‘8B1F’, ‘8BIM’ },
//ReadTypes { { ‘8B1F’, ‘ ‘ } },
FilteredTypes { { ‘8B1F’, ‘ ‘ } },
ReadExtensions { { ‘KAP ‘ } },
WriteExtensions { { ‘KAP ‘ } },
FilteredExtensions { { ‘KAP ‘ } },
FormatFlags { fmtDoesNotSaveImageResources, fmtCanRead,
fmtCannotWrite, fmtCanWriteIfRead },
FormatMaxSize { { 32767, 32767 } },
FormatMaxChannels { { 1, 24, 24, 24, 24, 24,
24, 24, 24, 24, 24, 24 } }
}
};
Master Retouching Hair
Learn how to rescue details, remove flyaways, add volume, and enhance the definition of hair in any photo. We break down every tool and technique in Photoshop to get picture-perfect hair, every time.