Re: InsertExif bugfix

Carlos Puchol <[email protected]> Thu, 18 Sep 2003 13:31:59 -0700
Newsgroups gmane.comp.web.cthumb.devel
Message-ID <[email protected]>
hi claudio,

sorry, i will apply the patch asap.
how can i test it well?

-c

Claudio Piciarelli <[email protected]> wrote:
> hello cthumb developers!
> As I mentioned before, I think there's a bug in the "InsertExif"
> code, since it doesn't work if the scaled-down pictures are stored in
> the thumb/ directory. I think the problem is in the following lines:
> 
> if ($InsertExif == 1){
>     my $relURL = relative_path($url, $pictureURL);
>     my $exiftxt = [...] `jhead $relURL`
> 
> relative_path() returns the path of the picture relative to the html
> page in which it is displayed, but what we really need is the
> path of the picture relative to the current working directory,
> that is $pictureURL.
> 
> I've written a small patch for cthumb 4.2, you can find it at
> http://iglu.cc.uniud.it/~piccia/cthumb_exif_patch.diff
> 
> 
> -- 
> `cat ~/.mutt/signature`
> 
> NO ai brevetti sul software nella UE
> http://swpat.ffii.org
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Cthumb-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/cthumb-devel


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf