I know this topic is quite old, but wanted to add anyway in case someone has the same requirements.
> 2) Is possible to make the derivative file names not contain the size in pixels? Because having that number in the filename easily will broke any links to the thumbnail and websize in the future.
>
> For example if a software like mine generate a bbcode like this for a forum software:
>
> [Image:
http://site.com/cache/someuser/filename_..._thumb.jpg]
>
> If the user change the size of the thumbnails or websize then the original link embeded in other software can be broken.
> Piwigo dont have that size included in the filenames. They use something like this
> filename-sq.jpg (square thumbnail)
> filename-th.jpg (small thumbnail)
> filename-me.jpg (websize thumbnail)
> filename.jpg (original filename)
> When user change the size option in his options panel he is not broking the past links.
You could use a `.htaccess` rewrite rule for those pre-defined image sizes. Something like this (untested):
RewriteRule ^(.*)(-sq\.jpg)$ $1_150_cw150_ch150_thumb.jpg
This should match all file requests ending in `-sq.jpg` and redirect those requests to the same filename but ending in `_150_cw150_ch150.jpg` instead.
Once you decide to go to 175 px sized thumbnails (for example) you just change the rewrite rule and you're done (caching aside as noted above).