Site icon Hip-Hop Website Design and Development

how do i create a selected handler for a url?

I wish to create a picture generator that may use a url like :
/image-generator?a=1&b=2&c=3

The picture generator can be dynamic and create a picture based mostly on the params. It should additionally output the picture. So there can be no HTML and the header will return content-type: picture/jpg.

What’s the easiest way to attain this? I appeared into making a customized route, however apparently you are not supposed to try this. Do I have to create a customized sort and a publish and set a customized handler for that sort? How can I make it go straight to code and skip all of the templates?