Has anyone tried automating this? For example in delphi, just make a new form with 2 images and a go button, then come code like this:
procedure TForm1.Button1Click(Sender: TObject);
Var
TempBitmap : TBitmap;
TempJpeg : TJPEGImage;
begin
TempJpeg := TJPEGImage.Create;
TempBitmap := TBitmap.Create;
TempJpeg.LoadFromFile('Template.jpg');
TempBitmap.Assign(TempJpeg);
Image1.Picture.Bitmap := TempBitmap;
TempJpeg.LoadFromFile('Test.jpg');
TempBitmap.Assign(TempJpeg);
Image2.Picture.Bitmap := TempBitmap;
Image1.Picture.Bitmap.Canvas.CopyRect(Rect(2070,0,3221,1370),Image2.Picture.Bitmap.Canvas,Rect(2041,0,3260,1370));
Image1.Picture.Bitmap.Canvas.CopyRect(Rect(164,0,1535,1370),Image2.Picture.Bitmap.Canvas,Rect(0,0,1535,1370));
Image1.Picture.Bitmap.Canvas.CopyRect(Rect(1535,0,1686,1370),Image2.Picture.Bitmap.Canvas,Rect(1535,0,1724,1370));
Image1.Refresh;
Image1.Picture.Bitmap.SaveToFile('Output.bmp');
end;It'll lose the drop shadows of the template, unless there was a drop shadow in the doner image, in that case the drop shadow gets streached. The biggest issue with the code above would be it's using window's native GDI commands, so that copyrect uses a per-pixel streach, very ugly and very nasty. You'll see some issues in the images looking like dark vertical lines until that was changed. It'll also chop off any "pop ups" (Insert bobbit joke for older folks) but with some tweaks it could do a pretty fair job.