Плагин Nik Collection Free в редактор GIMP
Доброго времени суток! Сегодня подготовил для вас очень интересный урок, из которого вы узнаете, как установить в GIMP дополнительный плагин для обработки фотографий под названием Nik Collection Free ( бесплатная версия от google 2016 года).
Nik Collection – это набор из 7 плагинов для программы Фотошоп, Лайтрум и Апертура, которые раскрывают большие возможности по обработке фотографий. А при чем тут GIMP? Про это чуть ниже.
В 2012 году Гугл приобрела компанию Nik Software и соответственно права на программный пакет Nik Collection. Позже Google снизила стоимость на пакет с 500 американских долларов до 150, а в марте 2016 — выпустила полностью бесплатную версию. Чем очень порадовало сообщество всех фотографов мира. Об этом было очень много новостей (можете сами загуглить).
Вот скриншот новости из веб архива за 2016 год
В начале 2017 году Гугл сообщил, что отказывается от дальнейших разработок плагина, а в конце 2017 года французская компания DxO выкупила права на дальнейшее использование и разработку программного обеспечения Nik SoftWare.
Как вы уже догадались, сейчас данная коллекция плагинов для фотографа снова продается за кровные доллары и успешно развивается французами. И поэтому, в этом уроке я покажу, как установить в наш редактор GIMP 2.10 ту самую бесплатную версию от Гугл за 2016 год.
Скачать данный набор плагинов вы можете по ссылке ниже:
Вот пакет плагинов у меня на рабочем столе.
Кликаем по значку, чтобы запустить установку. Выбираем «Русский» и нажимаем ОК.
В следующем окне нажимаем «Далее».
Обратите внимание, после установки программа займет 376 мб на вашем диске.
В следующем окне будут перечислены совместимые приложения с данным плагином. Если у вас будет установлен фотошоп, лайтрум или апертура, то здесь вы увидите эти названия. Как видите, гимпа в списке у нас нет. Нажимаем «Установить».
Начнется процесс установки программы.
После завершения установки, все 7 модулей пакета Nik Collection вы найдете в папке Program files
Теперь вы сможете запустить каждый плагин по отдельности, перейдя в соответствующую папку и нажав по пиктограмме плагина. Для примера я запустил плагин Analog Efex Pro 2, который добавляет к вашим фотографиям эффект старой аналоговой фотографии.
Что умеют делать плагины Nik Collection?
- Analog Efex Pro — позволяет создавать имитацию старой пленочной фотографии
- Color Efex Pro — плагин работающий с цветом на фотографии.
- Dfine — данный плагин позволяет избавится от шума на фотографии
- HDR Efex Pro — данный плагин сделает из вашей фотографии настоящее HDR 🙂
-
- Sharpener Pro — повышение резкости и четкости снимка
- Silver Efex Pro — создает эффекты черно-белых фотографий. В настройках можно выбрать шумы, рамки, царапины и т.д.
- Viveza — плагин позволяющий выполнить коррекцию цвета и тона. Ипсользуються ползунки настройки и всем любимые кривые.
На выше представленных примерах лишь малая часть того, что могут сделать данные дополнительные плагины для Gimp. Настроек и всевозможных пред установок очень много. Я думаю, что каждый сможет найти достойное применение данным плагинам в своих творческих работах и проектах.
Как заставить работать GIMP c плагинами Nik Collection?
Для того, чтобы запускать плагины напрямую из программы GIMP, нужно установить еще специальный скрипт связку «photographyPACK»
Скрипт-связка для 32 битных операционных систем Windows 7,8,10:
После того, как скачаете и разархивируете скрипты связки, скопируйте их в папку plugins программы GIMP. На операционной системе Windows 7,8,10
данная папка находится по следующему пути:
Вот как это выглядит у меня:
После этого запускаете GIMP и в меню у вас появится следующий пункт со списком установленных плагинов.
Теперь, у нас появилась возможность использовать плагины Nik Collection Free напрямую из программы GIMP.
Вся работоспособность тестировалась на операционной сиcтеме Windows 7 64x c последней версией GIMP 2.10.22. Позже запишу видео урок с ссылкой на данную статью. В комментариях прошу отписаться тем, у кого получится установить плагины на других ОС.
В подготовке к данному уроку использовался следующий англоязычный источник.
Источник
Nik collection gimp linux
Nik Collection for GIMP
Installation script to install Nik Collection for use with GIMP (2.9 & 2.10) and as a standalone app.
- Tested on Ubuntu 17.04 with Wine Staging v2.12 using Nik Collection v1.2.11, and GIMP v2.9.5 (from git).
- Depending on your system specs the plugins can take some time to start as they are launched through wine.
- Updated install script now verifies for GIMP version and related packages required to make it all work.
- GIMP will complain with the message ‘Incompatible type for «RichTIFFIPTC»; tag ignored’ after using some of the apps. If you click ok, the error will go away and everything will work. Note that if you have the convert utility program installed from the imagemagick package those warnings will disappear, though the installer now asks if you want to install the correct package if it is missing.
- Initial scripts and information was had from Erico Porto at https://github.com/ericoporto/NikInGimp (his version required PlayOnLinux, if you prefer it rather than using standard wine or wine staging these plugins do then definitely give it a try).
About
Scripts and related files to install Nik for GIMP on Ubuntu
Источник
iiey / shellOut.py
#!/usr/bin/env python |
«»» |
ShellOut.py |
call an external program passing the active layer as a temp file. Windows Only(?) |
Author: |
Rob Antonishen |
Version: |
0.7 fixed file save bug where all files were png regardless of extension |
0.6 modified to allow for a returned layer that is a different size |
than the saved layer for |
0.5 file extension parameter in program list. |
0.4 modified to support many optional programs. |
this script is modelled after the mm extern LabCurves trace plugin |
by Michael Munzert http://www.mm-log.com/lab-curves-gimp |
and thanks to the folds at gimp-chat has grown a bit 😉 |
License: |
This program is free software; you can redistribute it and/or modify |
it under the terms of the GNU General Public License as published by |
the Free Software Foundation; version 3 of the License. |
This program is distributed in the hope that it will be useful, |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
GNU General Public License for more details. |
The GNU Public License is available at |
http://www.gnu.org/copyleft/gpl.html |
«»» |
from gimpfu import * |
import shlex |
import subprocess |
import os , sys |
import tempfile |
# program list function (globals are evil) |
def listcommands ( option = None ): |
# |
# Insert additional shell command into this list. They will show up in the drop menu in this order. |
# Use the syntax: |
# [«Menu Label», «command», «ext»] |
# |
# Where what gets executed is command fileame so include and flags needed in the command. |
programlist = [ |
[ «DFine 2″ , » \» C: \\ Program Files \\ Google \\ Nik Collection \\ Dfine 2 \\ Dfine2.exe \» » , «png» ], |
[ «Sharpener Pro 3″ , » \» C: \\ Program Files \\ Google \\ Nik Collection \\ Sharpener Pro 3 \\ SHP3OS.exe \» » , «png» ], |
[ «Viveza 2″ , » \» C: \\ Program Files \\ Google \\ Nik Collection \\ Viveza 2 \\ Viveza 2.exe \» » , «png» ], |
[ «Color Efex Pro 4″ , » \» C: \\ Program Files \\ Google \\ Nik Collection \\ Color Efex Pro 4 \\ Color Efex Pro 4.exe \» » , |
«jpg» ], |
[ «Analog Efex Pro 2″ , » \» C: \\ Program Files \\ Google \\ Nik Collection \\ Analog Efex Pro 2 \\ Analog Efex Pro 2.exe \» » , |
«jpg» ], |
[ «HDR Efex Pro 2″ , » \» C: \\ Program Files \\ Google \\ Nik Collection \\ HDR Efex Pro 2 \\ HDR Efex Pro 2.exe \» » , «jpg» ], |
[ «Silver Efex Pro 2″ , » \» C: \\ Program Files \\ Google \\ Nik Collection \\ Silver Efex Pro 2 \\ Silver Efex Pro 2.exe \» » , |
«jpg» ], |
[ «» , «» , «» ] |
] |
if option == None : # no parameter return menu list, otherwise return the appropriate array |
menulist = [] |
for i in programlist : |
if i [ 0 ] != «» : |
menulist . append ( i [ 0 ]) |
return menulist |
else : |
return programlist [ option ] |
def plugin_main ( image , drawable , visible , command ): |
pdb . gimp_image_undo_group_start ( image ) |
# Copy so the save operations doesn’t affect the original |
if visible == 0 : |
# Save in temporary. Note: empty user entered file name |
temp = pdb . gimp_image_get_active_drawable ( image ) |
else : |
# Get the current visible |
temp = pdb . gimp_layer_new_from_visible ( image , image , «Visible» ) |
image . add_layer ( temp , 0 ) |
buffer = pdb . gimp_edit_named_copy ( temp , «ShellOutTemp» ) |
# save selection if one exists |
hassel = pdb . gimp_selection_is_empty ( image ) == 0 |
if hassel : |
savedsel = pdb . gimp_selection_save ( image ) |
tempimage = pdb . gimp_edit_named_paste_as_new ( buffer ) |
pdb . gimp_buffer_delete ( buffer ) |
if not tempimage : |
raise RuntimeError |
pdb . gimp_image_undo_disable ( tempimage ) |
tempdrawable = pdb . gimp_image_get_active_layer ( tempimage ) |
# get the program to run and filetype. |
progtorun = listcommands ( command ) |
# Use temp file names from gimp, it reflects the user’s choices in gimp.rc |
# change as indicated if you always want to use the same temp file name |
# tempfilename = pdb.gimp_temp_name(progtorun[2]) |
tempfilename = os . path . join ( tempfile . gettempdir (), «ShellOutTempFile.» + progtorun [ 2 ]) |
# . Note no run-mode first parameter, and user entered filename is empty string |
pdb . gimp_progress_set_text ( «Saving a copy» ) |
pdb . gimp_file_save ( tempimage , tempdrawable , tempfilename , tempfilename ) |
# Build command line call |
command = progtorun [ 1 ] + » \» » + tempfilename + » \» « |
args = shlex . split ( command ) |
# Invoke external command |
pdb . gimp_progress_set_text ( «calling » + progtorun [ 0 ] + «. » ) |
pdb . gimp_progress_pulse () |
child = subprocess . Popen ( args , shell = False ) |
child . communicate () |
# put it as a new layer in the opened image |
try : |
newlayer2 = pdb . gimp_file_load_layer ( tempimage , tempfilename ) |
except : |
RuntimeError |
tempimage . add_layer ( newlayer2 , — 1 ) |
buffer = pdb . gimp_edit_named_copy ( newlayer2 , «ShellOutTemp» ) |
if visible == 0 : |
drawable . resize ( newlayer2 . width , newlayer2 . height , 0 , 0 ) |
sel = pdb . gimp_edit_named_paste ( drawable , buffer , 1 ) |
drawable . translate (( tempdrawable . width — newlayer2 . width ) / 2 , ( tempdrawable . height — newlayer2 . height ) / 2 ) |
else : |
temp . resize ( newlayer2 . width , newlayer2 . height , 0 , 0 ) |
sel = pdb . gimp_edit_named_paste ( temp , buffer , 1 ) |
temp . translate (( tempdrawable . width — newlayer2 . width ) / 2 , ( tempdrawable . height — newlayer2 . height ) / 2 ) |
pdb . gimp_buffer_delete ( buffer ) |
pdb . gimp_edit_clear ( temp ) |
pdb . gimp_floating_sel_anchor ( sel ) |
# load up old selection |
if hassel : |
pdb . gimp_selection_load ( savedsel ) |
image . remove_channel ( savedsel ) |
# cleanup |
os . remove ( tempfilename ) # delete the temporary file |
gimp . delete ( tempimage ) # delete the temporary image |
# Note the new image is dirty in Gimp and the user will be asked to save before closing. |
pdb . gimp_image_undo_group_end ( image ) |
gimp . displays_flush () |
register ( |
«python_fu_shellout» , |
«Call an external program» , |
«Call an external program» , |
«Rob Antonishen» , |
«Copyright 2011 Rob Antonishen» , |
«2011» , |
» /Filters/ShellOut. » , |
«RGB*, GRAY*» , |
[( PF_RADIO , «visible» , «Layer:» , 1 , (( «new from visible» , 1 ), ( «current layer» , 0 ))), |
( PF_OPTION , «command» , «Program:» , 0 , listcommands ()) |
], |
[], |
plugin_main , |
) |
main () |
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Источник