.NET Photoshop Filter Host Library

Comments and discussions about other graphics tools
Post Reply
null54
Plugin Master
Plugin Master
Posts: 33
Joined: Fri Jul 15, 2011 5:05 am

.NET Photoshop Filter Host Library

Post by null54 »

This open source (MS-PL) host library allows any .NET application built with .NET 2.0 or later to run 8bf filters.

https://github.com/0xC0000054/PSFilterHost/

It supports Grayscale and RGB(A) in both 8 and 16 bits per channel.

Processing 16-bit images only works using the System.Windows.Media.Imaging classes in .NET 3.0 or later as GDI+ has limited support for 16-bit images (all GDI+ images are processed as 8-bit RGBA).

It is written in C# using Visual Studio 2010.
Last edited by null54 on Tue Dec 19, 2017 4:33 pm, edited 1 time in total.

HaraldHeim
Plugin Guru
Plugin Guru
Posts: 3363
Joined: Fri Mar 08, 2002 1:00 am
Location: The Plugin Site
Contact:

Re: .NET Photoshop Filter Host Library

Post by HaraldHeim »

Great! But it would be even better to have a DLL version of it that can be accessed from C/C++ and other languages.

null54
Plugin Master
Plugin Master
Posts: 33
Joined: Fri Jul 15, 2011 5:05 am

Re: .NET Photoshop Filter Host Library

Post by null54 »

HaraldHeim wrote:Great! But it would be even better to have a DLL version of it that can be accessed from C/C++ and other languages.
If you are using native C, C++ etc the host by DMMD would be a better fit, and it is probably more compatible with newer plugins as it implements the PICA suites.

It would also be possible for someone to write a C++/CLI wrapper for this host so it can be called from native code.

All suites up to Photoshop 4 are implemented with the exception of the Image Services suite, so the library could be used by plugin developers for a standalone 8bf host for example.

Although the Channel Ports suite is only enabled for Luce 2 as some filters do not handle them correctly even under Photoshop. :roll:

null54
Plugin Master
Plugin Master
Posts: 33
Joined: Fri Jul 15, 2011 5:05 am

Re: .NET Photoshop Filter Host Library

Post by null54 »

Added an example host application.

This is a 32-bit and 64-bit host similar to SigmaPi NiGulp.

It uses Windows Imaging Component to load and save the image, it can load any image format that has a codec installed (Camera Raw, WebP etc).

Only BMP, JPEG, GIF, PNG and TIFF are supported for saving.

null54
Plugin Master
Plugin Master
Posts: 33
Joined: Fri Jul 15, 2011 5:05 am

Re: .NET Photoshop Filter Host Library

Post by null54 »

Version 1.0.0.5 has been released.

Changes:
  • Fixed a regression in the scripting code from 1.0.0.4.
  • Added a class for the host to set the filter properties (Title, Caption, Ruler units etc).
  • Added a .NET 4.0 Client Profile binary.
Added a wiki page describing how to debug filters under the Example Host from Visual C++.

cincirin
Plugin Master
Plugin Master
Posts: 42
Joined: Tue Sep 28, 2010 9:18 am

Re: .NET Photoshop Filter Host Library

Post by cincirin »

If you are using native C, C++ etc the host by DMMD would be a better fit, and it is probably more compatible with newer plugins as it implements the PICA suites.
First, awesome idea from your part, and I wish you good luck with it. :wink:

Second, thanks @null54 for promote our Photoshop Host SDK http://www.thepluginsite.com/forum/view ... =15&t=3992. Indeed it contain only one ANS C dll which can be called from multiple language programming. Unfortunately we didn't have time for creating Mac version as I promised, but I hope we'll find time in one day.

Thank you and good luck.
Marius

null54
Plugin Master
Plugin Master
Posts: 33
Joined: Fri Jul 15, 2011 5:05 am

Re: .NET Photoshop Filter Host Library

Post by null54 »

Version 1.0.0.6 has been released.
  • Fixed a bug in the handling of the Caption field.
  • Added an error message for filters that do not support processing completely transparent images.
  • Fixed multiple Windows Imaging Component issues with meta data.

null54
Plugin Master
Plugin Master
Posts: 33
Joined: Fri Jul 15, 2011 5:05 am

Re: .NET Photoshop Filter Host Library

Post by null54 »

Version 1.1.0.0 has been released.
  • Added an EnumerateFilters method to the PSFilterHost class.
  • Fixed a bug with the SupportsImageMode method and PiMI resources.
  • Multiple issues with meta data handling, and various other bugs fixed.

null54
Plugin Master
Plugin Master
Posts: 33
Joined: Fri Jul 15, 2011 5:05 am

Re: .NET Photoshop Filter Host Library

Post by null54 »

Version 1.1.0.1 has been released.
  • Fixed a DEP crash with some 64-bit filters.
  • Added a HasAboutBox property to the PluginData class.

null54
Plugin Master
Plugin Master
Posts: 33
Joined: Fri Jul 15, 2011 5:05 am

Re: .NET Photoshop Filter Host Library

Post by null54 »

Version 1.1.0.2 has been released.
  • Added a PickColor callback that the host can use to show it's own color picker dialog.
  • Added a FileIOPermission demand when a filter is run.

null54
Plugin Master
Plugin Master
Posts: 33
Joined: Fri Jul 15, 2011 5:05 am

Re: .NET Photoshop Filter Host Library

Post by null54 »

Version 1.1.0.3 has been released.
  • Enabled some of the 5.0 PICA suites for the Google Nik Collection.
  • Removed the ref parameter from the PickColor delegate.

null54
Plugin Master
Plugin Master
Posts: 33
Joined: Fri Jul 15, 2011 5:05 am

Re: .NET Photoshop Filter Host Library

Post by null54 »

Version 1.1.0.4 has been released.
  • Fixed a transparency bug with planar image data.

null54
Plugin Master
Plugin Master
Posts: 33
Joined: Fri Jul 15, 2011 5:05 am

Re: .NET Photoshop Filter Host Library

Post by null54 »

Version 1.1.0.5 has been released.
  • Convert the source color space to RGB when showing the color picker.

null54
Plugin Master
Plugin Master
Posts: 33
Joined: Fri Jul 15, 2011 5:05 am

Re: .NET Photoshop Filter Host Library

Post by null54 »

Version 1.1.0.6 has been released.
  • Fixed a regression with filters that use scripting.

null54
Plugin Master
Plugin Master
Posts: 33
Joined: Fri Jul 15, 2011 5:05 am

Re: .NET Photoshop Filter Host Library

Post by null54 »

Version 1.2.0.0 has been released.
  • Added an EnumerateFilters overload that uses System.IO.SearchOption.
  • Fixed a COMException with invalid shortcuts.

null54
Plugin Master
Plugin Master
Posts: 33
Joined: Fri Jul 15, 2011 5:05 am

Re: .NET Photoshop Filter Host Library

Post by null54 »

Version 1.3.0.0 has been released.
  • Added a RunFilter overload to allow the host to show the filters user interface initialized to the settings from a previous session.
  • Added support for searching shortcuts to folders.

null54
Plugin Master
Plugin Master
Posts: 33
Joined: Fri Jul 15, 2011 5:05 am

Re: .NET Photoshop Filter Host Library

Post by null54 »

Version 1.4.0.0 has been released.
  • Added a HostColorManagement class to allow the host application to specify the ICC color profiles used to provide color correction when displaying the filter preview.
  • Added support for using the FloatingSelection filter case if the image has transparency and the filter does not support ProtectedTransparency.

Post Reply