image

Import an external file

file_save_data does (almost) all the job for us and drupal_http_request allows to get the file even through a proxy.

Create an image style

to create in code, programmatically an image style (previously called image cache preset)

usefull image functions

how to get an image path or theme a preset image ?