Quantcast
Channel: XnView Software
Viewing all articles
Browse latest Browse all 4990

Replacing pictures

$
0
0
by XnTriq (Posted Thu Aug 04, 2016 9:30 pm)
Let's pretend your exported video frames have the following name pattern:

  • X:\export\frame_0001.jpg
  • X:\export\frame_0002.jpg
  • X:\export\frame_9155.jpg
Copy the frame that's intended to replace the 3625 others to a new folder (e.g. X:\temp\) and name it frame.jpg.
Running the following batch file…

X:\temp\replicate.bat wrote:
Code: Select all
@echo off

for /l %%i in (1,1,9155) do call :docopy %%i
goto end

:docopy
set numero=000%1
set numero=%numero:~-4%

copy frame.jpg frame_%numero%.jpg

:end

… will leave you with a set of 9155 identical copies of frame.jpg.
Overwrite the 3625 frames in X:\export\ with their counterparts in X:\temp\.



Read Main Topic

Viewing all articles
Browse latest Browse all 4990