Post Reply 

Multi-layer EXR plug-in

Nov 17, 2013, 20:33
Post: #1
Multi-layer EXR plug-in
It seems windows users can't have that plug-in. Is there any plug-in which is similar to http://yorik.uncreated.net/guestblog.php?2011=67 (I think there isn't) or can someone compile that source code? I don't know anything about that stuff.
Find all posts by this user
Quote this message in a reply
Nov 17, 2013, 20:51 (This post was last modified: Nov 18, 2013 12:49 by rich2005.)
Post: #2
RE: Multi-layer EXR plug-in
This is the blurb

Quote:For this plugin to work, you also need the djv tools (djv-info and djv-convert) installed and correctly running on your system. See http://djv.sourceforge.net for info & download.

which takes you to this

Quote:DJV Imaging provides professional movie playback software for film production, VFX, and computer animation.
Features
Available for Linux, Apple OS X, and Microsoft Windows

then

Quote:To install the plugin, simply copy the file-exr.py file into your gimp plugins folder. It is tested on linux but should work on any platform.

link to the plugin http://yorik.uncreated.net/scripts/file-exr.py

So nothing to compile, it is a python plugin. pop it in

C:\Program Files\GIMP-2.0\share\gimp\2.0\plug-ins my bad
C:\Program Files\GIMP-2.0\lib\gimp\2.0\plug-ins
or
C:\Users\"yourname"\.gimp-2.8\plug-ins

If you can attach a exr file or point to one I will give it a try.
Find all posts by this user
Quote this message in a reply
Nov 17, 2013, 20:52
Post: #3
RE: Multi-layer EXR plug-in
This is Python code. So simply copy file-exr.py to Gimp plug-in directory.
And use Ctrl+O or Ctrl_Alt+O to Open. Like they say.
Find all posts by this user
Quote this message in a reply
Nov 17, 2013, 20:56
Post: #4
RE: Multi-layer EXR plug-in
That code is in Python and doesn't need to be compiled. Just put the file-exr.py file in the plugins folder of your Gimp profile.

However, it has a dependency on other tools available at http://djv.sourceforge.net/ (read the comment at the top of the file)(but these have a Windows version).

[Image: 2Tvo0.png]

Visit this user's website Find all posts by this user
Quote this message in a reply
Nov 18, 2013, 12:56
Post: #5
RE: Multi-layer EXR plug-in
Tried all morning with this. I found a couple of small (but not blender) exr files
but
Unable to open them using that plugin in either Linux or a Win7 VM. I can see the layers in LuminanceHDR. I could only get the djv utilities to convert the first frame to a tga file, but then IM also converts the first frame to another format & much easier.

Using the Gimp plugin, best I got was a crash report in linux. Win7 and Gimp 2.8.8 would not even see the files.

While search for more info, came across this, which is where I should have looked in the first place. http://registry.gimp.org/node/27793

So, for the moment looks like a lost cause.
Find all posts by this user
Quote this message in a reply
Nov 18, 2013, 13:46 (This post was last modified: Nov 18, 2013 13:51 by ofnuts.)
Post: #6
RE: Multi-layer EXR plug-in
Looks like a bad case of ninja'ing each other around 21:50 Smile

Where can I find an EXR file to have a shot a this?

[Image: 2Tvo0.png]

Visit this user's website Find all posts by this user
Quote this message in a reply
Nov 18, 2013, 14:58
Post: #7
RE: Multi-layer EXR plug-in
try this for a small image
https://trac.ffmpeg.org/raw-attachment/t...st_exr.exr

some larger files here
https://github.com/openexr/openexr-image...ster/Tiles
https://github.com/openexr/openexr-image...TestImages
Find all posts by this user
Quote this message in a reply
Nov 18, 2013, 15:33
Post: #8
RE: Multi-layer EXR plug-in
OK, thx.

[Image: 2Tvo0.png]

Visit this user's website Find all posts by this user
Quote this message in a reply
Nov 18, 2013, 16:54
Post: #9
RE: Multi-layer EXR plug-in
So the python script uses djv_info.exe to obtain a list of layers in the EXR, and then uses djv_convert.exe to extract each of these layers.

But djv_info says "unrecognized file"... Looking into it, there is EXR and EXR.... the EXR sample images above are OpenEXR... but for this the djv stuff comes with a plugin, that seems to require OpenEXR (http://www.openexr.com/).

The OpenEXR downloads aren't very talkative, they are just a ZIP that looks like it should go to "C\Program files" (no installer). After unzipping and adding the "bin" directory to PATH, I can use the OpenEXR software (exrdisplay.exe will show the above images), but djv_info still doesn't recognize the files.

[Image: 2Tvo0.png]

Visit this user's website Find all posts by this user
Quote this message in a reply
Nov 18, 2013, 17:25 (This post was last modified: Nov 18, 2013 18:38 by rich2005.)
Post: #10
RE: Multi-layer EXR plug-in
This is what I get in a terminal

[rich@localhost ~]$ cd Downloads/
[rich@localhost Downloads]$ PATH=${PATH}:/usr/local/djv/bin
[rich@localhost Downloads]$ djv
djv_cineon_info djv_dpx_info djv_ls
djv_convert djv_info djv_view

[rich@localhost Downloads]$ djv_info test_exr.exr
test_exr.exr 2138x872:2.45 RGB F16 00:00:00:00@24

[rich@localhost Downloads]$ djv_convert test_exr.exr new.tga
test_exr.exr 2138x872:2.45 RGB F16 00:00:00:01@24
new.tga 2138x872:2.45 RGB F16 00:00:00:01@24
Elapsed = 00:00:01.24
[rich@localhost Downloads]$

Trying the plugin this morning I popped all the djv files into /usr/local/bin ..usr/local/share etc rather than usr/local/djv then add to the path. Maybe that is where I went wrong. Don't really want it added permanently.

edit a bit later - running gimp from the above terminal, I get this
Traceback (most recent call last):
File "/usr/lib/gimp/2.0/python/gimpfu.py", line 807, in _run
res = apply(func, params[1:])
File "/usr/lib/gimp/2.0/plug-ins/file-exr.py", line 42, in load_exr
img = pdb.gimp_file_load(os.path.join(tempDir,layers[0]+".tga"),0)
IndexError: list index out of range
Find all posts by this user
Quote this message in a reply
Nov 18, 2013, 17:40
Post: #11
RE: Multi-layer EXR plug-in
First, djv tools should be installed on the system. You sad that plug-in has an dependency. There is no available .exe file to download.
Find all posts by this user
Quote this message in a reply
Nov 18, 2013, 18:13 (This post was last modified: Nov 18, 2013 18:15 by rich2005.)
Post: #12
RE: Multi-layer EXR plug-in
You can download the Windows DJV installers either
http://djv.sourceforge.net/downloads.html
or there is a link to this page
http://sourceforge.net/projects/djv/file....3%20Pre2/
The end result is the same, an installer for a 32 bit Windows or a 64 bit Windows.
There is a note in the page http://djv.sourceforge.net/install.html that the windows requirement is Windows 7.

I tried this and the plugin in a Win7 32 bit virtual machine with Gimp 2.8.8 and I could not get the plugin to work.

I would be a great help if you could post a link to a multi-page blender exr file. I think the only ones I could find were single images.

Also, what version of windows are you using?
Find all posts by this user
Quote this message in a reply
Nov 18, 2013, 20:30
Post: #13
RE: Multi-layer EXR plug-in
I'm sorry. I can't post a .exr image now Undecided

I will use another software
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Getting Layer Effects on GIMP 2.8 for Mac Q A 4 802 May 28, 2014 23:58
Last Post: Esper
  Can a text layer be set to a zero length string? Bob 1 281 Apr 29, 2014 00:08
Last Post: ofnuts
Question [ADVISE NEEDED] Best Practises over Python-Fu Plug-in Project Kdio 3 781 Apr 24, 2014 07:14
Last Post: ofnuts
  Deblur plug-in furtfight 1 429 Apr 20, 2014 13:01
Last Post: ofnuts
  [Solved] How to select layer? and documentation | gimpfu PythonStudent 2 370 Apr 19, 2014 16:33
Last Post: PythonStudent

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS