JollyGoal / tooltip_thumb_generator

Tooltip thumbnail generator
MIT License
1 stars 2 forks source link

Issue with Multiple sprite image script #3

Open PraveenValaboju opened 1 year ago

PraveenValaboju commented 1 year ago

Thanks @JollyGoal, just tried this one but for the second sprite image the x and y position showing incorrect, actually it should start from 0,0 like first sprite image

First sprite image dimensions in vtt file WEBVTT

00:00:05.000 --> 00:00:15.000 149505_sprite-0.jpg#xywh=0,0,320,180

00:00:15.000 --> 00:00:25.000 149505_sprite-0.jpg#xywh=320,0,320,180

00:00:25.000 --> 00:00:35.000 149505_sprite-0.jpg#xywh=640,0,320,180

00:00:35.000 --> 00:00:45.000 149505_sprite-0.jpg#xywh=960,0,320,180

00:00:45.000 --> 00:00:55.000 149505_sprite-0.jpg#xywh=1280,0,320,180

00:05:25.000 --> 00:05:35.000 149505_sprite-0.jpg#xywh=640,900,320,180

00:05:35.000 --> 00:05:45.000 149505_sprite-0.jpg#xywh=960,900,320,180

00:05:45.000 --> 00:05:55.000 149505_sprite-0.jpg#xywh=1280,900,320,180

second sprite image 00:05:55.000 --> 00:06:05.000 149505_sprite-1.jpg#xywh=1600,900,320,180

00:06:05.000 --> 00:06:15.000 149505_sprite-1.jpg#xywh=0,1080,320,180

00:06:15.000 --> 00:06:25.000 149505_sprite-1.jpg#xywh=320,1080,320,180

00:06:25.000 --> 00:06:35.000 149505_sprite-1.jpg#xywh=640,1080,320,180

Thanks in advance