Re: large file endings in ZMS Image
"sascha.gottfried" <[email protected]> Tue, 31 May 2011 23:16:06 -0000
| Newsgroups | gmane.comp.cms.zms.devel |
|---|---|
| Message-ID | <[email protected]> |
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
> ---
>