コードを使用しています
<div style="background:url('upload/image1.jpg'); width:300px; height:400px; position:relative;">
<br/>
<div style="position: absolute; top:300px; overflow:hidden; height:100px; width:300px;" id="overlay">This is a sample text</div>
<br/>
</div>
これでは、divの背景として画像を使用しています。そして、div オーバーレイのようにオーバーレイ テキストを画像に追加します。
オーバーレイ テキストを追加した後、メイン div を新しい画像として保存します。どうやって?