I'm going to add this feature in the next version of pThumb, likely later this month.
I'm still thinking on the best way to implement it, probably create a placeholder for each generated image on a page: [[+pt.X]] where X starts at 1 and increments for each subsequent image on the page. This works fine for handcoding as well as—in many cases—getResources/pdoResources templates where you can use the [[+idx]] placeholder to get the proper number. That's easy enough to do in most cases, but not ideal for everything.
<img src="[[*image:pthumb=`w=263`]]" [[+pt.1]] alt="xxx">
or in a getResources tpl:
<img src="[[+tv.image:pthumb=`w=263`]]" [[+pt.[[+idx]]]] alt="xxx">
which will become
<img src="/image-cache/something.eff892b0.jpg" width="263" height="200" alt="xxx">
Another idea is to have variant of the pthumb snippet which returns
src,
width and
height all at once:
<img [[*image:pthumbDims=`w=263`]] alt="xxx">
Now that I think about it, this might be the better way to go...