aferrero2707 / gimp-appimage

174 stars 17 forks source link

Newer Gimp 2.10.9 AppImages like 20181227 do not work with compiled lensfun plugin #27

Open phd21 opened 5 years ago

phd21 commented 5 years ago

Hi aferrero,

Thank you for packaging Gimp versions as AppImages.

I'm using Linux Mint KDE Neon (Ubuntu 18.04) and Linux Mint 19.x (Ubuntu 18.04) and 18.3 (Ubuntu 16.04). In previous AppImages like "20181108" the compiled "gimp-lensfun" (04-27-2016) works perfectly, but not in the newest AppImage, why? Can this be fixed, corrected, or allowed to use the older gimp-lensfun plugin?

Could not execute plug-in "gimp-lensfun" (/home/user69/.config/GIMP-AppImage/2.10/plug-ins/gimp-lensfun) because it uses an obsolete version of the plug-in protocol.

Do you know why Gimp v2.10.x AppImage does not use the installed "lensfun" packages like other image editors? Can this be changed or do we have to rely on "gimp-lensfun" plugin which it appears to not be maintained or updated anymore? Do you know if the installed Ubuntu 18.04 regular version of Gimp 2.10.8 uses the installed lensfun packages or the Gimp-lensfun plugin, look to me like the latter?

Also, it seems like the Resynthesizer plugin does not have all the Resynthesizer related plugins or am I mistaken?

Enhance>Heal selection... Retouch. Like the heal tool, but automatic. Replaces the selection to look like its surroundings. Probably the most popular and useful.

Enhance>Heal transparency... Like above, but you don't need to select anything, it heals every transparent pixel.

Enhance>Uncrop... Makes the canvas larger and heals the new transparent border. Not exactly the inverse of cropping, but almost: reconstructs what might have been cropped earlier.

Enhance>Sharpen by synthesis... A variant of sharpening that might give more plausible detail.

Enhance>Enlarge & sharpen... Enlarge (increase the resolution) and sharpen. Might restore more plausible detail than simple scaling up and using other sharpens.

Map>Resynthesize... A control panel. The hardest to understand, but the most powerful. Displays every control of the Resynthesizer engine. Here, you can experiment with other uses of the algorithm. The other plugins are simplified, special uses of this plugin.

Map>Style... transfer the 'style' of one image to another.

Render>Texture.. Creates a new image having the texture from another image. In other words, a seamless, irregular wallpaper (if the source image is smaller.) (You can also use Map>Resynthesize to create tiles, and then you can create a regular but seamless pattern.)

Edit>Fill with pattern seamless.

Best regards, Phil (phd21)

aferrero2707 commented 5 years ago

Hi @phd21, and sorry for the late answer...

In general, the AppImage cannot make use of external binary plug-ins that are saved in the $HOME/.config/GIMP-AppImage/2.10/plug-ins. This is because the GIMP version in the AppImage runs in a different environment with respect to the host system. Therefore, plugins compiled against the libraries of the host system will not work correctly with the GIMP executable from the AppImage.

The clean solution is to add the GIMP-lensfun plug-in into the AppImage itself. I will check if this is still working (if the plugin is not maintained anymore, it might not compile properly against the latest GIMP version...).

Alternatively, you could try installing PhotoFlow on your system (either via AppImage or package manager) and use the PhotoFlow plugin to apply lens corrections. If you want to try this method, I can give you more precise instructions on how to proceed. PhotoFlow will use the installed lensfun package when using the Ubuntu package (photoflow-git from this PPA). It will also use an up-to-date lensfum version when running from the AppImage.

I will also look into the missing Resynthesizer options.