I don't believe so, but just in case,
where is the information about the expiration date available in the image?
Set the image as a background - put the text over it.
Use relative positioning to push a text element with a higher z-index over the image element.
Overlay text with absolute positioning over the image.
Indifference will be the downfall of mankind, but who cares?
I thought the OP was trying to extract the expiration date from somewhere in the image,
in which case we would need to know how the image is formatted or stored.
If OP already knows expiration date and it is not part of the image format to be extracted, then 'chrishirst's solutions would seem adequate.