Re: large file endings in ZMS Image

"sascha.gottfried" <[email protected]> Tue, 14 Jun 2011 19:38:41 -0000
Newsgroups gmane.comp.cms.zms.devel
Message-ID <[email protected]>
Hi Nils,
I tested with ZMS version (ZMS2 2.13.0c1.1294). Please provide the ZMS version and more details about your problems with image scaling.

Sascha
--- In [email protected], "sascha.gottfried" <sascha.gottfried@...> wrote:
>
> I will provide the version string of my ZMS this evening. You should provide yours too. Just dump content of version.txt to your reply.
> 
> It is generally a good idea to provide the ZMS version together with a bug report. Zope version informationen (Control_Panel) are welcome as well. 
> 
> --- In [email protected], "sascha.gottfried" <sascha.gottfried@> wrote:
> >
> > Hi Niels,
> > i packed the mediadb on windows. No loss of data. have a look at _mediadb.manage_packMediaDb(). 
> > 
> >   filenames = mediadb.valid_filenames()
> >   for filename in os.listdir(path):
> >     if filename not in filenames:
> >       filepath = path + os.sep + filename
> >       if os.path.isfile(filepath):
> >         os.remove(filepath)
> > 
> > dump output of methods in first two lines to eventlog or compare lists while debugging with pdb. ntfs and linux filesystem ext3 are both case-sensitive by default.
> > 
> > 
> > Please add more code samples (details of ZMSImage instance and generated HTML code) for the question regarding the image scaling.
> > 
> > Sascha
> > 
> > 
> > 
> > --- In [email protected], Niels Dettenbach <nd@> wrote:
> > >
> > > Hi all,
> > > dear devels,
> > > 
> > > 
> > > i've found several problems with large file endings (JPG, PNG, GIF and others) 
> > > within ZMSImage (ZMS 2.12 on Linux / Unix).
> > > 
> > > - such images are not scaled automatically within preview etc.
> > > - such images seems to get lost when do media-db packing
> > > 
> > > This may affect for me as i did run ZMS on Linux / Unix systems and not for 
> > > i.e. for any windows user (case sensitive file system). 
> > > 
> > > Is this the typical behaviour (as i found several filename.lower() within ZMS 
> > > sources).
> > > 
> > > From my view it would be the best solution to just bring the case down to 
> > > lower case for all image filenames when uploading.
> > > 
> > > Is there any solution in newer ZMS versions? Should i write a ZMS patch for 
> > > 
> > > Any comments?
> > > 
> > > 
> > > many thanks in advance.
> > > best regards,
> > > 
> > > 
> > > Niels.
> > > 
> > > 
> > > -- 
> > > 
> > > ---
> > > 
> > >   Niels Dettenbach
> > >   ---
> > >   Syndicat IT&Internet
> > >   http://www.syndicat.com
> > >   T.-Muentzer.-Str. 2, 37308 Heilbad Heiligenstadt - DE
> > >   ---
> > >   Kryptoinfo: 
> > >   PGP public key ID 651CA20D
> > >   Fingerprint: 55E0 4DCD B04C 4A49 1586  88AE 54DC 4465 651C A20D
> > >   https://syndicat.com/pub_key.asc
> > >   ---
> > >
> >
>