Creates and caches image in local cache directory
Creates and caches image in local cache directory
The path to where the images are stored
The filePath relative to the path variable (the same as the play Assets Controller)
a File if everything when well
The unique play-res file identifier
The play-res source name
a File if everything when well
Detect the image format "jpg" or "png" Done by reading the first bytes of the file to check if it correspond to a file format "signature"
Detect the image format "jpg" or "png" Done by reading the first bytes of the file to check if it correspond to a file format "signature"
The File we want to analyse
A String representing the image format "jpg" or "png"
http://www.garykessler.net/library/file_sigs.html
Resizes an image and stores it in a temp file that we then can move into a cache
Resizes an image and stores it in a temp file that we then can move into a cache
The file to resize
A resized file