PEAK XOOPS - Filepaths with space (on windows) in englishin japanese

Filepaths with space (on windows)

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - Children.1 | Posted on 2005/2/22 6:43
saintolaf2  ÆóÅùʼ   Posts: 1
Hi!

Thanks for a great module. I do like your way of producing modules that combines rich functionality with simple user interface. I am using both piCal and myalbum-p at my site right now.

I have had some problems with myalbum on a windows platform recently. Couldn't get thumbsnail production and resize to function properly. After a while I realised that this was related to using a filepath with spaces. If you accept the default Apache directory structure you will have space in the filepath. As a result the php exec statemant that calls convert (in the ImageMagick case) will not work properly.

To handle this I modified the functions myalbum_create_thumb_by_imagick and myalbum_modify_photo_by_imagick inserting an extra pair of "" around the paths, for instance like:

Quote:
if( $option != "" ) exec( "{$myalbum_imagickpath}convert $option \"$src_path\" \"$dst_path\"" )

The \" part being the inserted characters. After this everything worked OK. I haven't checked if this is a problem also for NetPBM and GD2.

Saintolaf2

Votes:1 Average:0.00
Previous post - Next post | Parent - No child | Posted on 2005/2/23 4:59
GIJOE  ÀèǤ·³Áâ   Posts: 4110
hi Saintolaf2.

Thank you for the good suggestion.
Certainly, it's my mistake.

I'll fix it.
Votes:1 Average:10.00

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!