Since Ubuntu 11.10, the thumbnails are not any more made through "gconf ". Files situated in /usr/share/thumbnailers or in $HOME/.local/share/ thumbnailers with the extension .thumbnailer will point to nautilus how to create different images types thumbnails.
I did not find on the Internet (I must little to be badly looked) a "thumbnailer" for files openEXR.
Then here is the solution that I set up...
ImageMagick must be installed. If it is not the case:
$ sudo apt-get install imagemagick
Then create the script which will be executed for the creation of thumbnails...
$ gedit /your/path/exr-thumbnailer
... here is the very simple code:
#!/bin/bash
convert "$1" -thumbnail "x$2" -colorspace sRGB -format png png:"$3"
Make it "excecutable":
$ chmod +x /your/path/exr-thumbnailer
It is then necessary to create a file or in /usr/share/thumbnailers, if you want that the other users take advantage of it (in this case it will be necessary to create it with the root privileges), or, if you are the only user, in .local/thumbnailers of your personal directory.
Attention: the directory thumbnailers in .local can be absent, in this case it is necessary to create it:
$ mkdir /home/your login/.local/share/thumbnailers
I chose the second solution:
$ gedit /home/your login/.local/share/thumbnailers/exr.thumbnailer
In the file exr.thumbnailer (with a dot in the name) put this:
[Thumbnailer Entry]
TryExec=/your/path/to/exr-thumbnailer
Exec=/your/path/to/exr-thumbnailer %i %s %o
MimeType=image/x-exr;
Change "your path" with yours.
Then restart nautilus:
$ nautilus -q; nautilus
Or restart your session.
The icons of files EXR should display images.
To open them, I use "Djv Imaging" which you will find here
Install it, then associate EXR files with executable file "djv_view" by means of UbuntuTweak for example.
It detects the images sequences .
Et voilà
Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts
Sunday, December 1, 2013
Tuesday, January 4, 2011
Kidizoom and Ubuntu Maverick
For Christmas, we gave a camera Vtech Kidizoom Pro to each of our two little girls (yes, I am a grandfather). Unfortunately, when i connect the USB cable... nothing happens! How? A camera which is not recognized by Linux? Strange! 'lsusb' shows me that the KP is seen by the system but does not mount automatically. A bit of Google surf tells me that damned bug no longer allow our beloved OS to mount automatically fat16 partitions...
After some research about the udev rules, here is a solution that will avoid to mount the KP manually.
The connection is usb1, this is why the loading rate is very slow. And here nothing to do, our OS is innocent.
First, create and edit an udev rules file:
$ sudo touch /etc/udev/rules.d/90-kidizoom.rules
$ sudo gedit /etc/udev/rules.d/90-kidizoom.rules
Then put a line to mounting...
KERNEL=="sd?1", SUBSYSTEMS=="scsi", ACTION=="add", ATTRS{vendor}=="VTech ", ATTRS{model}=="Kidizoom ", SYMLINK+="kidizoom", RUN+="/path/to/mount-script %k"
...and this one to unmounting.
KERNEL=="sd?1", SUBSYSTEMS=="scsi", ACTION=="remove", ENV{ID_VENDOR}=="VTech*", RUN+="/path/to/umount-script %k"
The file can be downloaded here, Be careful to not forget to change the path of RUN and reload udev with:
$ sudo service udev restart
Installe "pmount":
$ sudo apt-get install pmount
Here is the mount script:
#!/bin/bash
mk() {
pumount /dev/$1
sleep 1
pmount -t vfat /dev/kidizoom KIDIZOOM
xhost local:$2
nautilus /media/KIDIZOOM
}
user=`who | grep :0\) | cut -f 1 -d ' '`
export DISPLAY=:0.0
export -f mk
su $user -c "mk $1 $user"
And here, the unmount script:
#!/bin/bash
umk() {
pumount /dev/$1
sleep 1
xhost local:$2
zenity --info --text "Kidizoom is unmount"
}
user=`who | grep :0\) | cut -f 1 -d ' '`
export -f umk
export DISPLAY=:0.0
su $user -c "umk $1 $user"
To download this files it is here and there.
Don't forget to set the execute permission (thanx to Marten@UBL):
$ chmod +x /path/to/mount-script; chmod +x /path/to/umount-script
Thank you to sevkeifert for his help
Et voilà ...
After some research about the udev rules, here is a solution that will avoid to mount the KP manually.
The connection is usb1, this is why the loading rate is very slow. And here nothing to do, our OS is innocent.
First, create and edit an udev rules file:
$ sudo touch /etc/udev/rules.d/90-kidizoom.rules
$ sudo gedit /etc/udev/rules.d/90-kidizoom.rules
Then put a line to mounting...
KERNEL=="sd?1", SUBSYSTEMS=="scsi", ACTION=="add", ATTRS{vendor}=="VTech ", ATTRS{model}=="Kidizoom ", SYMLINK+="kidizoom", RUN+="/path/to/mount-script %k"
...and this one to unmounting.
KERNEL=="sd?1", SUBSYSTEMS=="scsi", ACTION=="remove", ENV{ID_VENDOR}=="VTech*", RUN+="/path/to/umount-script %k"
The file can be downloaded here, Be careful to not forget to change the path of RUN and reload udev with:
$ sudo service udev restart
Installe "pmount":
$ sudo apt-get install pmount
Here is the mount script:
#!/bin/bash
mk() {
pumount /dev/$1
sleep 1
pmount -t vfat /dev/kidizoom KIDIZOOM
xhost local:$2
nautilus /media/KIDIZOOM
}
user=`who | grep :0\) | cut -f 1 -d ' '`
export DISPLAY=:0.0
export -f mk
su $user -c "mk $1 $user"
And here, the unmount script:
#!/bin/bash
umk() {
pumount /dev/$1
sleep 1
xhost local:$2
zenity --info --text "Kidizoom is unmount"
}
user=`who | grep :0\) | cut -f 1 -d ' '`
export -f umk
export DISPLAY=:0.0
su $user -c "umk $1 $user"
To download this files it is here and there.
Don't forget to set the execute permission (thanx to Marten@UBL):
$ chmod +x /path/to/mount-script; chmod +x /path/to/umount-script
Thank you to sevkeifert for his help
Et voilà ...
Subscribe to:
Posts (Atom)

