Add “Edit with GIMP” Context Menu in Windows 8.1 [Bonus: No Font Loading]

Screenshot of Gimp in Windows 8.1's Context Menu

To add the “Edit with GIMP” context menu entry automatically into Windows 8.1, download gimp-context-menu.zip, open it and run gimp-context-menu.reg.

If you want to do it manually, run notepad (press WindowsKey + r, write “notepad”, press return) and copy-paste the following text into it:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\SystemFileAssociations\image\shell\Edit with GIMP]
@="Edit with GIMP"

[HKEY_CLASSES_ROOT\SystemFileAssociations\image\shell\Edit with GIMP\command]
@="\"C:\\Program Files\\GIMP 2\\bin\\gimp-2.8.exe\" \"%1\""

Warning: if you have GIMP installed in a different location or GIMP is not version 2.8. you need to adapt the last line of this text.

Save the file under the name gimp-context-menu.reg and run it, confirming the warnings. There you go!

If you have problems with GIMP never ending loading fonts during startup, you can disable loading fonts in the context menu as well. To do this automatically, download gimp-context-menu.zip, open it and run gimp-context-menu-no-fonts.reg.

If you want to do it manually, run notepad (press WindowsKey + r, write “notepad”, press return) and copy-paste the following text into it:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\SystemFileAssociations\image\shell\Edit with GIMP]
@="Edit with GIMP"

[HKEY_CLASSES_ROOT\SystemFileAssociations\image\shell\Edit with GIMP\command]
@="\"C:\\Program Files\\GIMP 2\\bin\\gimp-2.8.exe\" \"--no-fonts\" \"%1\""

Warning: if you have GIMP installed in a different location or GIMP is not version 2.8. you need to adapt the last line of this text.

Save the file under the name gimp-context-menu-no-fonts.reg and run it, confirming the warnings. There you go!

Please write a comment if anything goes wrong.

 

Posted in qubodup | Tagged , , | Leave a comment

Kdenlive (Melt, MLT) Performance: OGG Vorbis vs. WAV

Logo: KDENLIVE WAV VS OGG PERFORMACE

Wondering, whether it would increase rendering performance if I used WAV instead of OGG Vorbis audio files while rendering, I created a test case in the free, open source Kdenlive video editor on my Phenom 9550 2.2 GHz Quadcore machine.

The two test cases use a 1MB 1920×1080 JPG and either a OGG Vorbis (588KB) or WAV (8.5MB) file, both of which have 441.kHz, are stereo, 49 seconds long to render a 49 seconds 1080p (1920×1080) video.

The results (`time` was used to determine user CPU time):

OGG Vorbis WAV
Test 1 369.15s 367.66s
Test 2 368.29s 366.96s
Test 3 367.95s 367.86s
Average 368.46s 367.49s

This means a potential insignificant 0.26% speed increase when rendering a 41-second long webm with a WAV audio file instead of an OGG Vorbis file on a AMD Phenom 9550 Quad-Core machine.

Posted in qubodup | Leave a comment

Kdenlive (Melt, MLT) Performance: Composite vs. Flat Pre-Rendered Images

Background and Foreground Combined

Wondering, whether it would increase rendering performance if I used flat images, rather than combining background and overlay while rendering, I created a test case in the free, open source Kdenlive video editor on my Phenom 9550 2.2 GHz Quadcore machine.

The two test cases use either one pre-rendered jpg image (flat) or one background jpg and one foreground label png with background transparency (composite) to render a 5 seconds 1080p (1920×1080) video.

The results (`time` was used to determine user CPU time):

Flat Composite
Test 1 61s 66s
Test 2 60s 66s
Test 3 60s 66s
Average 60.3s 66s

This means a potential 9-10% speed increase when rendering a 5-second long webm pre-flattening two images on a AMD Phenom 9550 Quad-Core machine.

You can pre-render two images using the command line tool imagemagick with the following command:

convert background.jpg foreground.png -composite flat.jpg
Posted in qubodup | Tagged , , | Leave a comment

Fastest Minimal Linux Text Editor: Beaver vs Gedit vs Kate vs KWrite vs Leafpad

Stupidly, I have been using Kate as a text editor for taking down notes and such.

The Arch Wiki list of applications shows some real candidates, which I compared by looks, start-up time and reaction to drag & drop.

Application versions & screenshots

  • Beaver
    beaver 0.4.1-2
  • GEdit
    gedit 3.10.3-1
  • Kate
    kdesdk-kate 4.12.0-1
  • KWrite
    kdebase-kwrite 4.12.0-1
  • Leafpad
    leafpad 0.8.18.1-3

Start-up time

I tested by loading a 62218 Byte text file using `time` and holding down Ctrl + Q down, averaging five times.

  1. 0.283s Beaver
  2. 0.315s Leafpad
  3. 0.534s Gedit
  4. 0.989s Kwrite
  5. 1.076s Kate

My experience with Kate is that when I’m in the middle of jumping between 20 tabs while playing back one or two flash instances, the start-up time will be very noticeable.

Drag & Drop

I need an editor which allows me to drop links into for quick note-taking of web sources. What I’m testing is the default behavior when dragging the URL by the document icon left (leftmost object in Chromium URL bar), or a text link (“Home” on archlinux.org).

Drag & Drop into Text Editor

Gedit failes to open http, Kate/Kwrite will download and open the HTML files while Beaver and Leafpad will insert the URL. I haven’t checked whether the default behavior of any of these can be changed. By selecting the URL bar text and dragging and dropping it, all editors will copy the text only.

By the way: When dragging an image, either link or not, into the editor, Gedit fails to open http, Kate/KWrite will open the binary file, Leafpad will ask you to save/discard/cancel the currently open file but won’t actually open the image while Beaver apparently does not handle images (no drag & drop indicator icon appears).

Result

I’d go with Beaver but pressing the “new file” button makes it segfault, so I’ll give Leafpad a try, as long as it does not crash. If it does, I will have to check whether gedit can be taught to calm down regarding links. Alternative suggestions welcome!

Posted in qubodup | Tagged , | 3 Comments

Benefits of FLAC and OGG Vorbis

Image

FLAC and OGG Vorbis are audio file formats, which have advantages over WAV/AIFF and MP3.

FLAC is smaller than WAV or AIFF and its container format supports metadata by default, which benefits keeping track of authorship and license in large sound collections.

FLAC is lossless, while MP3 always has a loss of quality. Also MP3 does not support rates over 48000. Both is hard to notice but can become very relevant when manipulating the sound file.

OGG Vorbis is of higher quality than MP3 and is a patent-free format, which is important to software/hardware makers. FLAC is also patent-free.

Unfortunately, some software developers and hardware manufacturers still exclude FLAC and/or OGG Vorbis support.

I recommend the free, open source Linux/Mac/Windows Audacity software to solve compatibility problems and convert files.

If you can find the time, please contact the developer of your software/manufacturer of your hardware, informing them of the need for FLAC and/org OGG Vorbis support to be able to quickly work with the format.

Posted in qubodup | Tagged , , , , , , , , | Leave a comment

FLAC Sucks!

Image

FLAC audio format sucks. That’s what some comments on my Freesound.org sounds tell me. I’m a fan though.

 

It is too bad that software developers and hardware manufacturers still exclude FLAC support, which has advantages over WAV and MP3.

FLAC is smaller than WAV or AIFF and its container format supports metadata by default, which benefits keeping track of authorship and license in large sound collections.

FLAC is lossless, while MP3 always has a loss of quality. Also MP3 does not support rates over 48000. Both is hard to notice but can become very relevant when manipulating the sound file.

I recommend the free, open source Linux/Mac/Windows Audacity software to solve compatibility problems and convert the file.

If you can find the time, please contact the developer of your software/manufacturer of your hardware, informing them of the need for FLAC support to be able to quickly work with the format.

 

Posted in qubodup | Tagged , , , , | 1 Comment

Friendly Subway Exit

Image

Very old news: Back in 2012 I made the art for a non-violent contribution to the 7DFPS challenge. You get out of a subway by “shooting” friendliness at passengers in your way.

Wand art (CC-BY 3.0) by Buch from OpenGameArt.

You can play the game using Unity Web Player here or using Chrome native player here. Get the blender art files here.

Posted in qubodup | Tagged , | Leave a comment

Game Website Basics: Favicon and Facebook Image Preview (OpenGraph for Social Websites like Reddit, Google Plus…)

Many games’ websites (for example the amazing Heroine Dusk as of May 2nd, 2013) miss two minimal elements that make a game’s website more noticeable and sharing it more rewarding to the sharing party: Favicons and preview images.

Favicons help find your website among 10-100 tabs.

Preview images allow users of the social website see content before clicking the link. This is necessary to process the masses of links in Facebook feeds for example. Text gets skipped.

Favicon

All you have to do is upload a 16×16 image “favicon.ico” and add the following code to the <head> section of all your HTML pages.

<link rel='shortcut icon' href='favicon.ico' />

You don't have to use .ico file format (supported by GIMP). See Wikipedia's How to use Favicons for other formats.

How a tab looks with and without favicon in Chromium's tabs

Favicon of your game site in tabs

Isn't this better? Even if the icon is ugly, at least it helps differentiate from other tabs.

Preview image

All you have to do is upload a screenshot of your game "screenshot.jpg" and add the following code to the <head> section of all your HTML pages. Important: the image path has to be absolute, not relative.

<meta property='og:image' content='http://example.com/screenshot.jpg' />

Sharing a link on Facebook with and without preview image

Social Media Previews thanks to OpenGraph

Now the "share" is noticeable in the Facebook/social whatever website feed.

OpenGraph

OpenGraph has many more metadata features. For example you can also use og:description to change the text that is displayed by social media sites like Facebook. Images are more important though. Sorry to say.

Other Stuff

Still reading? You should add short descriptions of your game to the website title and body. Think about the fact that the <head> <title> element gets displayed as the title in Google search results. Think about how to describe your game to somebody who does not know what your game is or who doesn't know the definition of your game's genre.

What I said above in action

I made a silly game a while ago. The best part about making it was learning about OpenGraph.

Posted in qubodup | Tagged , , , , , | 2 Comments

Poem for Free (as in Freedom) Audio File Formats

Propaganda ahead. Proceed with caution.

Audio File Format Heroes And Fools

Audio File Formats can be confusing at first,
I hope to change this, with this tiny verse!

FLAC is lossless, FLAC does compress,
with FLAC support there is no mess!

AIFF and WAV are too heavy to race,
Use FLAC to save lots of server space!

Vorbis is small and its use is free,
AAC and MP3 are tied to a patent tree!

FLAC and Vorbis are the best-sounding kin,
Leave restrictions behind and install a plug-in!

Soundwave of a recording of the poem

I recorded a reading of the poem in FLAC file format.

Poem copyright 2012 Iwan Gabovitch, Licensed under Attribution 3.0

Illustration (GIMP source) copyright 2012 Iwan Gabovitch, Dual-licensed under Attribution ShareAlike 3.0 and GPL 3 or later

Posted in qubodup | Tagged , , | Leave a comment

Making horrible/annoying/weird games at game creation jams

It’s super fun!

I did voice acting and retro HTML coding for an “eye-cancerous” abstract point-and-click game

Warning: contains silly.

Warning: contains ads.

Play in pointer-driven web browser: Low Resolution Land: You The Hero!

Code: github.com/qubodup/lrl

I had eight hours to do this during September Berlin Mini Jam.

Posted in qubodup | Tagged , , | 1 Comment