Changed path of temp dir for something below the www root (not usual, but quite clean to my mind)
WHY is php not configured with a right default encoding, instead of using system default ? weird
Generating images from JPEG consume HUGE memory !