Repubblica.it e le foto doppie

Alcuni giorni fa, avevo notato che nelle gallerie fotografiche di Repubblica c’erano molto spesso delle foto doppie.
Ad esempio:

http://www.repubblica.it/2006/05/gallerie/calcio/capello-chiambretti/3.html
http://www.repubblica.it/2006/05/gallerie/calcio/capello-chiambretti/16.html

o queste due:
http://www.repubblica.it/2006/05/gallerie/calcio/capello-chiambretti/4.html
http://www.repubblica.it/2006/05/gallerie/calcio/capello-chiambretti/17.html

oppure queste:
http://www.repubblica.it/2006/05/gallerie/calcio/capello-chiambretti/5.html
http://www.repubblica.it/2006/05/gallerie/calcio/capello-chiambretti/18.html

o anche queste:
http://www.repubblica.it/2006/05/gallerie/calcio/capello-chiambretti/6.html
http://www.repubblica.it/2006/05/gallerie/calcio/capello-chiambretti/15.html

Una settimana ho mandato mail chiedendo se se ne fossero accorti:

C’e` un problema software o si tratta di altro?
Le pagine html hanno nomi diversi e date di pubblicazione diverse per pochi minuti, ma sostanzialmente contenuto identico.

Prontamente (un’ora dopo) mi e` stato risposto:

Grazie della segnalazione che abbiamo inoltrato al settore.
cordiali saluti
segreteria Repubblica.it

Non ho ricevuto altro feedback, ma mi pare che ultimamente siano sparite.
Eviva :-)

Compiling Focusblur plug-in with FFTW on OSX

In the last period I’ve been playing a lot with fake tilt shift images, waiting to be able to afford one of the expensive real TS lenses on the market.
I work on all the images using The Gimp, which is a great piece of software, full of features – but it lacked the specific effect I wanted to give to my photos.
At first I used gaussian blur, but I couldn’t quite obtain what I was looking for.

Then I discovered that wonderful plugin that is focusblur.
However, on Mac there’s no precompiled version distributed by the author.

No problem. I downloaded a copy, re-compiled The Gimp using Mac Ports (by the way, the last 1.7 version rocks!) and compiled a version of the plugin.
At that time, I did not compile it with support for FFTW, a free and fast library to compute the discrete Fourier transform.
Tonight I gave it another shot, and these are my findings and my solution:

First of all, focus blur looks (using pkg-config) for a library named “fftw3f“, while the ports installed version is called “fftw3“. It’s not a typo, and it took me a while to realize it.
The “standard” fftw package that gets installed with the ports is not suitable to be linked with the focusblur plugin, and will give you linking errors similar to these (putting them in for the search engines)

Undefined symbols:
"_fftwf_plan_dft_c2r_2d", referenced from:
_focusblur_fft_buffer_update in fftblurbuffer.o
"_fftwf_execute", referenced from:
_focusblur_fft_buffer_make_kernel in fftblurbuffer.o
_focusblur_fft_work_apply in fftblurproc.o
_focusblur_fft_work_apply in fftblurproc.o
"_fftwf_free", referenced from:
_focusblur_fft_buffer_clear_work in fftblurbuffer.o
_focusblur_fft_buffer_clear_work in fftblurbuffer.o
_focusblur_fft_work_free_buffers in fftblurproc.o
"_fftwf_plan_dft_r2c_2d", referenced from:
_focusblur_fft_buffer_update in fftblurbuffer.o
"_fftwf_destroy_plan", referenced from:
_focusblur_fft_buffer_clear_work in fftblurbuffer.o
_focusblur_fft_buffer_clear_work in fftblurbuffer.o
"_fftwf_malloc", referenced from:
_focusblur_fft_buffer_update in fftblurbuffer.o
_focusblur_fft_buffer_update in fftblurbuffer.o
_focusblur_fft_work_add_buffer in fftblurproc.o

You will need one version that has to be compiled with these options:

./configure --enable-shared --enable-float

this will give you a version that is likable against focusblur.
I just downloaded, compiled and installed another version of fftw into /opt/local (not safe, not nice, not elegant – but it was the fastest solution).
*UPDATE*: I did not notice there is a port named “fftw-3-single”, which among the options of configure.args in the Portfile lists the two options above.
On my mac, it is in

/opt/local/var/macports/sources/rsync.macports.org\
/release/ports/math/fftw-3-single

If you happen to use it, please confirm if it works correctly (I’m too lazy).

Then, configure focusblur and check that it recognized the fftw library. It looks for it using the command

PKG_CONFIG --exists --print-errors "fftw3f"

(look for it in the configure script). To be safe, you may want to

export PKG_CONFIG_PATH=/opt/local/lib/pkgconfig/

If the compiling still gives you troubles, check that it’s linking against the new library (there should be a -lfftw3f in the compiling lines).
Last, but not least, check that the newly obtained executable is really linked against fftw:

beepbeep:src zen$ otool -L focusblur | grep fft
/opt/local/lib/libfftw3f.3.dylib (compatibility version 6.0.0, current version 6.2.0)

Then after copying the plugin to your location of choice (I prefer to keeping them inside my $HOME into .gimp-2.6/plug-ins), fire up The Gimp and enjoy the new accelerated focusblur!
Have Fun!

*UPDATE* @20090122: I didn’t put in a link to download it, which may be useful to some people.
Sorry guys, only i386 Mach-O executable… Get it here

Jon Postel, a dieci anni dalla morte

6 Agosto 1943 – 16 Ottobre 1998
http://en.wikipedia.org/wiki/Jon_Postel

Jon was a founding member of the Internet Architecture Board and
served continuously from its founding to the present. He was the
FIRST individual member of the Internet Society I know, because he
and Steve Wolff raced to see who could fill out the application forms
and make payment first and Jon won. He served as a trustee of the
Internet Society. He was the custodian of the .US domain, a founder
of the Los Nettos Internet service, and, by the way, managed the
networking research division of USC Information Sciences Institute.

Jon loved the outdoors. I know he used to enjoy backpacking in the
high Sierras around Yosemite. Bearded and sandaled, Jon was our
resident hippie-patriarch at UCLA. He was a private person but fully
capable of engaging photon torpedoes and going to battle stations in
a good engineering argument. And he could be stubborn beyond all
expectation. He could have outwaited the Sphinx in a staring
contest, I think.

I REMEMBER IANA, Vint Cerf
http://tools.ietf.org/html/rfc2468

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close