If you have an image with spaces in its name, its thumb
is generated, but any references to the image in html
pages have
width="0" and height="0" so they don't get displayed.
imageSizeNoCache()
....
mre = re.compile( "([0-9]+)x([0-9]+)" )
---> mo = mre.match( string.split( output )[1] )
if not mo:
---> mo = mre.match( string.split( output )[2] )
if mo:
( width, height ) = map( lambda x: int(x),
mo.groups() )
return ( width, height )
.....
The indicated line will read the wrong part of the return
string if there is a space in the full pathname (either the
filename or the directory name)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: NO
The problem is in the function
imageSizeNoCache()
....
mre = re.compile( "([0-9]+)x([0-9]+)" )
---> mo = mre.match( string.split( output )[1] )
if not mo:
---> mo = mre.match( string.split( output )[2] )
if mo:
( width, height ) = map( lambda x: int(x),
mo.groups() )
return ( width, height )
.....
The indicated line will read the wrong part of the return
string if there is a space in the full pathname (either the
filename or the directory name)
Logged In: YES
user_id=594430
That explains what I'm seeing!
Logged In: YES
user_id=594430
That explains what I'm seeing!
Logged In: YES
user_id=27858
I just encountered this problem too. Nasty.