Resize images in partial html file

Thanks for your answer.
But how can I use .Page.Resource in the partial? I haven’t found in the doc.