Code Monkey home page Code Monkey logo

gmic-8bf's Introduction

gmic-8bf

A filter plug-in for Adobe® Photoshop®* and other compatible software that interacts with G'MIC-Qt.

The latest version can be downloaded from the Releases tab.

System Requirements

  • Windows* 7, 8, 10 or 11.
  • A compatible 32-bit (x86) or 64-bit (x64 or ARM64) host application.

Installation

  1. Close your host application.
  2. Place GmicPlugin.8bf and gmic folder in the folder that your host application searches for filter plug-ins.
  3. Restart your host application.
  4. The plug-in will now be available as the G'MIC-Qt menu item in the GMIC category.

Installing in Specific Hosts

The gmic-8bf project wiki provides installation instructions for several popular hosts.

Affinity Photo: Installing in Affinity Photo
Photoshop: Installing in Photoshop
XnView: Installing in XnView

Updating

Follow the installation instructions above and allow any existing files to be replaced.

Usage

To start the plug-in select the G'MIC-Qt item in the filter list of your host application. The following image shows the menu location in Adobe Photoshop.

Menu Location

G'MIC-Qt

When the G'MIC-Qt menu item is clicked it will start the G'MIC-Qt user interface.

G'MIC-Qt UI

While the plug-in supports the Grayscale image modes, many G'MIC effects will only work correctly in the RGB image modes (e.g. the various Colorize effects).

You can "layer" multiple G'MIC effects in a single session by clicking the Apply button. Note that only the most recently applied effect will be used when the plug-in is invoked through the "Last Filter" or "Repeat Filter" commands.

Filters that require multiple input images can only be used if the input settings have been configured to provide a second input image or the document has multiple layers and the host supports providing layers to the plug-in. Document layers are provided to plug-ins by Adobe Photoshop CS (8.0) and later (and possibly other Adobe applications), but 3rd-party hosts will most likely not support this feature due to the license restrictions added to the Photoshop SDK after version 6.0.

If the user has not configured a default output folder the plug-in will prompt the user to save the modified images after the G'MIC-Qt dialog has been closed in the following cases:

  1. When a filter produces multiple output images the plug-in will prompt the user for a folder to copy them into.
  2. When a filter changes the image size the plug-in will prompt the user to save the resized image.

Color Management

The G'MIC-Qt preview image will be color managed if the 8bf plug-in host software provides the image color profile to its plug-ins.

Note that there may still be some differences between the G'MIC-Qt filter preview and the output shown in the 8bf plug-in host.
The G'MIC-Qt preview uses Little CMS for color management, and the color management software used by the 8bf plug-in host may produce different colors.

Photoshop Actions

The plug-in will show the name of the G'MIC effect and the Input Mode in the actions palette.

Photoshop Actions palette

The Photoshop Actions support has a few compatibility issues:

  • G'MIC effects that produce multiple images or resize the image will save the results to external files, these files will have to be manually imported into Photoshop.
  • If you use the G'MIC-Qt ability to "layer" multiple effects in a single session, Actions will only remember the settings of the most recently applied effect.
  • The plug-in will always show its user interface.

Input/Output Settings for G'MIC-Qt

When the Input/Output Settings for G'MIC-Qt menu item is clicked it will start the Input/Output Settings for G'MIC-Qt user interface.

G'MIC-Qt Input/Output settings UI

Input Settings

This section allows a second input image to be sent to G'MIC-Qt for the filters that require one. The settings in this section will be ignored if the document has multiple layers and the host supports providing layers to plug-ins.

You can choose from one of the following options:

  • None (default)
    • The plug-in will only use the document layers for additional input images.
  • Clipboard
    • The plug-in will look for a second input image on the operating system clipboard.
  • File
    • The plug-in will use the specified image as the second input image.

Output Settings

This section allows users to set a default output folder for filters that produce multiple output images or resizes the output image. The output folder should default to a G'MIC-Qt folder in your Pictures folder, but it can be changed to any folder.
When this option is configured the plug-in will copy the output image(s) to the specified folder without prompting the user. A prompt will still be shown if there was an error loading the default folder setting.

License

This project is licensed under the terms of the MIT License.
See License.txt for more information.

Source code

Prerequisites

  • Visual Studio 2022
  • vcpkg
    • The dependencies listed in vcpkg.json will be installed as part of the build.
  • The Adobe Photoshop SDK, see the read-me in the ext folder for more details.

Building the plug-in

  • Open the solution in the vs folder
  • Update the post build events to copy the build output to the filters folder of your host application
  • Build the solution
* Adobe and Photoshop are either registered trademarks or trademarks of Adobe Systems Incorporated in the United States and/or other countries.
 Windows is a registered trademark of Microsoft Corporation in the United States and other countries.   
 All other trademarks are the property of their respective owners.

gmic-8bf's People

Contributors

0xc0000054 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

ganego greyclab

gmic-8bf's Issues

G'MIC host dialog does not support HDPI

When opening on a 4k monitor with 200% font scaling, G'MIC opens without any scaling, so the text is very tiny.
When moving the dialog to a secondary monitor with 125% scaling, only the filters list becomes readable (I suspect this is unintentional, the rest of the text is further downscaled, so it still unreadable)

Below is a screenshot on a 4K monitor at 200% (check dialog caption title characters for the size text should have)

image

Same dialog moved from 4k monitor at 200% to a secondary monitor at 125%

image

Not working with Paintshop Pro

Hi,

thank you very much for making a Ps compatible version of the G'MIC plugin!

Works great on Ps but the last version that plays well with Paintshop Pro is v1.0.2. All newer ones give a weird Memory Error as soon as you hit the OK button, to go back to PSP: https://prnt.sc/wdnnqp

Tested on PSP 2021, PSP 2020 and PSP X7.. all x64 (never tried x32).

Tell the user where to put it

I downloaded this plugin for PS and the readme is not even remotely helpful:

Place GmicPlugin.8bf and gmic folder in the folder that your host application searches for filter plug-ins.

How should a normal user know where that is? So instead of having every user of this google the answer, just write it in the readme, so work has to be done only once.

The answer for PS is: C:\Program Files\Common Files\Adobe\Plug-Ins\CC\.

gmic wants to export instead of applying

Hello
For some reason on some layers g'mic wants to export a file instead of applying the effect.

Steps to reproduce :

  • open my file
  • try to apply an effect

I guess that it has to do with the layer being bigger than the image, again.

Filters only affect a square area if picture is taller than wider

Plugin version 1.1.0 x64

Tested on Windows 10 r1910 + Photoshop 21.1 x64 and Windows 10 r1910 + XnViewMP 0.97.1 x64.

Everything looks correct in the preview, but if the picture is taller than wider, then clicking either Apply or OK causes the filter to be applied only to a square the same height as the picture’s width. e.g., if the picture is 960×1280 pixels, then only the upper 960×960 pixels are processed.

This does not happen with pictures that are wider than taller.

Possible update to G'MIC 3.0.0?

Hello Nicholas.
Hope you are going well.
Not really an issue, but I'd want to inform you that latest stable version 3.0.0 of G'MIC has been released today :)

Cheers,

David.

Stylize not functional?

hi, This is a great package (as a Photoshop plug-in). Well done. However, I cannot get the style transfer filter to work - see the screenshot here. Any ideas on how to fix that?

Screenshot 2020-12-02 09 46 09

It does work correctly in this mode:

Screenshot 2020-12-02 09 55 26

unable to read all of the requested image data from a layer

Hello

Sorry to tell you that there is still a bug with layers size in 3.02.1. Gmic can't open and says : "unable to read all of the requested image data from a layer".

Steps to reproduce the bug :

  • I opened a drawing of mine
  • I imported a painting (to use as a style for the stylise filter)
  • I put the painting layer below my drawing's layer, and scaled it up (because the stylise filter doesn't work well if there is empty space around the layer)
  • can't open g'mic
    00.zip

The reason for this bug seems to be that the painting layer is bigger than the other. I found out that if I cut it, it works. Data outside of the boundaries should just be ignored though.

Thanks

A file I/O error occured

Hello

When I try to open G'MIC I now have this error message :
G'MIC-Qt filter
A file I/O error occured.

It used to work though.

I deleted the "GmicPlugin.8bf" file and the "gmic" folder, downloaded and copied them again in photoshop plugin folder, but I still have this message. I also tried to use an older version but it doesn't help neither.

Can you help please ?

Thanks

Fix error handling for hosts that ignore the plug-in error codes

A number of popular host applications silently ignore the generic error codes that Photoshop-compatible plugins can return to the host instead of showing the user an appropriate error message.
Examples include: Affinity Photo version 1.9, IrfanView and XnView.

The fix would be to change the plugin so that it will show an error message without relying on the host to properly handle the generic error codes.
Another benefit of this is that it can provide the user with a much better description of the problem.

Related to https://github.com/dtschump/gmic/issues/285#issuecomment-775811245

Multiple-input filter not getting correct data?

Hello,

I'm using gmic-8bf 2.9.6.3 with Photoshop 22.3.0 and gmic-gimp 2.9.6 with GIMP 2.10.22, both on Windows 10, all amd64 builds. I'm trying to use the ‘Colorize Lineart [Smart Coloring]’ G'MIC filter in ‘Extrapolate Color Spots on Transparent Top Layer’ mode. Called from GIMP, the filter works as expected, but from Photoshop, it does not.

I've prepared a test image to demonstrate, with separate lineart and spots. I've also taken screenshots of GIMP and of Photoshop to show exactly how they are set up before I invoke the respective plugins. The result I get from GIMP, and then 8bf, plugins:

Screenshot 2021-03-24 175350

Screenshot 2021-03-24 175404

From what I can see, it seems that the filter is merging the colour spots into the lineart layer, reducing the result to black & white, then running itself on that without any colour information. If I use the Paint Bucket tool to crudely expand the colour spots, then I get this:
Screenshot 2021-03-24 181905

I hope this helps. Thanks for your efforts.

Crashes with 16 bit images.

1.1.0 crashes when invoked on 16 bit images and takes Photoshop down with it. CC on Win 10. Poster on DPR is having similar issues with CS6. 1.1.1 shows the same behavior on CC.

Windows Defender finds virus

clipboard
I'm seeing this whenever I try to install. Have DL'd previous versions and all give this when scanned. Oddly, this did not occur with v. 1.0, but when I moved up to 1.0.2. As mentioned, now it happens with any version. I really think this is a false positive, but it's worth checking, I think.

Edition Windows 10 Home
Version 20H2
Installed on ‎6/‎10/‎2020
OS build 19042.662
Experience Windows Feature Experience Pack 120.2212.551.0

GMIC not installing on Affinity Photo V2

Hi, it's not appearing in the Plugins list. Not that Nik Collection 7 is either and I've emailed DxO about that.
I've followed the instructions that Nick Hayes (think that is his name) wrote in 2021.
Thanks for any help resolving this.

compatibility with Mac?

First, congratulations for creating a plug-in that allows Photoshop users to discover the wonders of Gmic and FOSS applications.

Is the current plug-in meant to be compatible with MacOS?
When re-opening Photoshop it fails to load gmic in filters Filters.

I am on MacOS 10.15 Catalina
I have dropped the file GmicPlugin.8bf and gmic folder into the plug-in folder in Mac for the last two versions of Photoshop:
MainDrive/Applications/Adobe Photoshop 2021/Plug-ins
MainDrive/Applications/Adobe Photoshop 2020/Plug-ins

Photoshop does open all the other plug-ins stored in those folders.
However all my other plug-ins are set as bundles .plugin
Inside the package the Info.plist files do refer to CFBundlePackageType 8BFM

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.