Mail Index


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ApacheGallery] 3 bugs and a feature request



I have downloaded and installed the latest snapshot; apparently the
problem does not yet appear to be fixed.

However, the workaround I did manage was to decompress and re-compress the
JPGs using djpeg/cjpeg tools provided in unix.  It appears the JPG
compression algorithm just isn't supported by the gallery prog.  Any ideas
on how this can be fixed?

With respect to the uri_escape problem, here are the diffs between the
latest snapshot and the version which I updated based on the code of
another user on this mailing list.  This patch is for the r121 snapshot

22c22,23
< use URI::Escape;
---
> #use URI::Escape;
> use Carp;
991a993,1016
> }
>
> # Because of some problems with bugs in URI::Escape in perl 5.6.0
> # we include our own version here for now.
> my %escapes;
> # Build a char->hex map
> for (0..255) {
>  $escapes{chr($_)} = sprintf("%%%02X", $_);
> }
> my %subst; # compiled patterns (cached)
> sub uri_escape {
>
>  my ($text, $pattern) = @_;
>  return undef unless defined $text;
>
>  unless (exists $subst{$pattern}) {
>  (my $tmp = $pattern) =~ s,/,[^\]\\/,g;
>  $subst{$pattern} =
>  eval "sub {\$_[0] =~ s/([$tmp])/\$escapes{\$1}/g; }";
>  Carp::croak("uri_escape: [email protected]") if [email protected];
>  }
>  &{$subst{$pattern}}($text);
>
>  return $text;



On Wed, 5 Mar 2003, Thomas Kjær wrote:

> On Wed, Mar 05, 2003 at 11:30:41AM -0500, Jack Gryn wrote:
> > Bug 1)
> >
> > Some JPG files are problematic; if they even exist in one of the
> > Apache::Gallery directories, the server will give a 500 error for that
> > directory.  Nothing is reported in the error logs either.
>
> This is fixed in the latest snapshot.
>
> <http://svn.apachegallery.dk:8080/snapshots/Apache-Gallery-r121.tar.gz>
>
>
> > I have attached 2 files which I find problematic.
>
> http://lnx.dk/photos/test/sheratonworld-1.JPG
>
>
> > Feature Request)
> >
> > I would lke the ability to show a gallery recursively spanning multiple
> > directories in a single page.
>
> Sounds like a nice feature to me.  If someone (Thomas, Michael?) would
> like to write the perl code, I'd be glad to modify the templates.
>
>