[ENH] filegals: improve and clean tiki-download_file + add a 'max' argument to be able to reduce an image with a max height or width of 'max' without loosing the aspect ratio.
[ENH] filegals: improve and clean tiki-download_file + add a 'max' argument to be able to reduce an image with a max height or width of 'max' without loosing the aspect ratio.

git-svn-id: 79db53bec14f0ce9f7a86eb71e89624f126ad069@12203 b456876b-0849-0410-b77d-98878d47e9d5

oregional/tiki,tikiorg/tiki,changi67/tiki,tikiorg/tiki,oregional/tiki,oregional/tiki,changi67/tiki,oregional/tiki,tikiorg/tiki,tikiorg/tiki,changi67/tiki,changi67/tiki,changi67/tiki