<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>458997</bug_id>
          
          <creation_ts>2022-09-11 13:46:44 +0000</creation_ts>
          <short_desc>&apos;Start numbering at&apos; doesn&apos;t work when rendering to image sequence</short_desc>
          <delta_ts>2023-09-25 13:50:37 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>krita</product>
          <component>Animation</component>
          <version>5.1.0</version>
          <rep_platform>Microsoft Windows</rep_platform>
          <op_sys>Microsoft Windows</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Maarten">info</reporter>
          <assigned_to name="Eoin O&apos;Neill">eoinoneill1991</assigned_to>
          <cc>eoinoneill1991</cc>
          
          <cf_commitlink>https://invent.kde.org/graphics/krita/commit/ff83c5a91811b2822b73b33839212cef47cb7392</cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2151845</commentid>
    <comment_count>0</comment_count>
    <who name="Maarten">info</who>
    <bug_when>2022-09-11 13:46:44 +0000</bug_when>
    <thetext>SUMMARY
&apos;Start numbering at&apos; doesn&apos;t work when rendering to image sequence


STEPS TO REPRODUCE - TEST 1
1. Create a frame-by-frame animation starting from frame 24 and ending at frame 45 (for example. not starting at 0 or 1)
2. File --&gt; Render Animation
3. Leave &apos;Start numbering at&apos; at 0 to start output numbering on frame 0
4. Click &apos;OK&apos; to render
5. Watch result in Windows Explorer: See that the frame numbers aren&apos;t starting at 0, but at frame 24 as the original keyframe number on the timeline. So it ignored the &apos;start numbering at&apos; setting.

STEPS TO REPRODUCE - TEST 2
1. Create a frame-by-frame animation starting from frame 24 and ending at frame 45 (for example. not starting at 0 or 1)
2. File --&gt; Render Animation
3. Leave &apos;Start numbering at&apos; at 1 to start output numbering on frame 1
4. Click &apos;OK&apos; to render
5. Watch result in Windows Explorer: See that the frame numbers aren&apos;t starting at 1, but at frame 24 as the original keyframe number on the timeline. So it ignored the &apos;start numbering at&apos; setting.

STEPS TO REPRODUCE - TEST 3
1. Create a frame-by-frame animation starting from frame 24 and ending at frame 45 (for example. not starting at 0 or 1)
2. File --&gt; Render Animation
3. Leave &apos;Start numbering at&apos; at 2 to start output numbering on frame 2
4. Click &apos;OK&apos; to render
5. Watch result in Windows Explorer: See that the frame numbers aren&apos;t starting at 2, but at frame 24 as the original keyframe number on the timeline. So it ignored the &apos;start numbering at&apos; setting.

OBSERVED RESULT
See above

EXPECTED RESULT
Image sequence to start at given frame number as set in &apos;start numbering at&apos;

SOFTWARE/OS VERSIONS
Windows:  10
Krita: 5.1.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2152148</commentid>
    <comment_count>1</comment_count>
    <who name="Eoin O&apos;Neill">eoinoneill1991</who>
    <bug_when>2022-09-12 19:46:46 +0000</bug_when>
    <thetext>Git commit 9913555acb209ca826ea543af467ae6fa3ed44d1 by Eoin O&apos;Neill.
Committed on 12/09/2022 at 19:45.
Pushed by eoinoneill into branch &apos;master&apos;.

Fix the &quot;Start Numbering At&quot; Field not Working as Advertised

Internally, the code always refers to this as &apos;numbering offset&apos; so I
presume that the labeling changed in the GUI and that wasn&apos;t properly
reflected in the code to work as intended. In short, I&apos;ve modified the
behavior to work as advertised.

I plan to make some modifications to export at some point, but one of the
best things we could do short term is clean up variable naming to better
reflect intent as that is how this bug happened in the first place (I
think...)

M  +2    -2    libs/ui/KisAsyncAnimationFramesSavingRenderer.cpp

https://invent.kde.org/graphics/krita/commit/9913555acb209ca826ea543af467ae6fa3ed44d1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2152228</commentid>
    <comment_count>2</comment_count>
    <who name="Halla Rempt">halla</who>
    <bug_when>2022-09-13 06:50:58 +0000</bug_when>
    <thetext>Git commit ff83c5a91811b2822b73b33839212cef47cb7392 by Halla Rempt, on behalf of Eoin O&apos;Neill.
Committed on 13/09/2022 at 06:50.
Pushed by rempt into branch &apos;krita/5.1&apos;.

Fix the &quot;Start Numbering At&quot; Field not Working as Advertised

Internally, the code always refers to this as &apos;numbering offset&apos; so I
presume that the labeling changed in the GUI and that wasn&apos;t properly
reflected in the code to work as intended. In short, I&apos;ve modified the
behavior to work as advertised.

I plan to make some modifications to export at some point, but one of the
best things we could do short term is clean up variable naming to better
reflect intent as that is how this bug happened in the first place (I
think...)
(cherry picked from commit 9913555acb209ca826ea543af467ae6fa3ed44d1)

M  +2    -2    libs/ui/KisAsyncAnimationFramesSavingRenderer.cpp

https://invent.kde.org/graphics/krita/commit/ff83c5a91811b2822b73b33839212cef47cb7392</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2152335</commentid>
    <comment_count>3</comment_count>
    <who name="Maarten">info</who>
    <bug_when>2022-09-13 14:38:17 +0000</bug_when>
    <thetext>Wow, great work and nice to see you picked this up so soon! Thanks for that! It&apos;s nice to be able to start our frames from a given number soon! Thanks again</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2152786</commentid>
    <comment_count>4</comment_count>
    <who name="Eoin O&apos;Neill">eoinoneill1991</who>
    <bug_when>2022-09-15 02:30:51 +0000</bug_when>
    <thetext>Hi Marteen,

No worries, thanks again for reporting the bug. If you want to test it out earlier, you can try out one of Krita&apos;s nightly version(s).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2153563</commentid>
    <comment_count>5</comment_count>
    <who name="Maarten">info</who>
    <bug_when>2022-09-17 09:19:01 +0000</bug_when>
    <thetext>(In reply to Eoin O&apos;Neill from comment #4)
&gt; Hi Marteen,
&gt; 
&gt; No worries, thanks again for reporting the bug. If you want to test it out
&gt; earlier, you can try out one of Krita&apos;s nightly version(s).

See it&apos;s present in 5.1.1, which I just installed. You guys are faster than the light! Thanks for this!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2255156</commentid>
    <comment_count>6</comment_count>
    <who name="Dmitry Kazakov">dimula73</who>
    <bug_when>2023-09-25 13:50:01 +0000</bug_when>
    <thetext>Git commit 0ed384a5dae0d99582f964c0061519769b7a0176 by Dmitry Kazakov.
Committed on 25/09/2023 at 15:46.
Pushed by dkazakov into branch &apos;master&apos;.

Fix removal of duplicated frames in &quot;Only Unique Frames&quot; mode

The offset was applied incorrectly so the clean-up stage of the rendering
process removed incorrect files (basically, the files without the
normalizing offset)

The patch should also fix a possible offset issue between the video
and audio when rendering multiple times into the same folder
Related: bug 450449, bug 474679

M  +2    -2    libs/ui/KisAsyncAnimationFramesSavingRenderer.cpp
M  +1    -17   libs/ui/animation/KisAnimationRender.cpp
M  +0    -4    libs/ui/animation/KisAnimationRender.h
M  +13   -21   libs/ui/dialogs/KisAsyncAnimationFramesSaveDialog.cpp
M  +2    -2    libs/ui/dialogs/KisAsyncAnimationFramesSaveDialog.h

https://invent.kde.org/graphics/krita/-/commit/0ed384a5dae0d99582f964c0061519769b7a0176</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2255159</commentid>
    <comment_count>7</comment_count>
    <who name="Dmitry Kazakov">dimula73</who>
    <bug_when>2023-09-25 13:50:37 +0000</bug_when>
    <thetext>Git commit 2fbd233de9554bb94a98fbf53cb14dc3e457fe5d by Dmitry Kazakov.
Committed on 25/09/2023 at 15:50.
Pushed by dkazakov into branch &apos;krita/5.2&apos;.

Fix removal of duplicated frames in &quot;Only Unique Frames&quot; mode

The offset was applied incorrectly so the clean-up stage of the rendering
process removed incorrect files (basically, the files without the
normalizing offset)

The patch should also fix a possible offset issue between the video
and audio when rendering multiple times into the same folder
Related: bug 450449, bug 474679

M  +2    -2    libs/ui/KisAsyncAnimationFramesSavingRenderer.cpp
M  +1    -17   libs/ui/animation/KisAnimationRender.cpp
M  +0    -4    libs/ui/animation/KisAnimationRender.h
M  +13   -21   libs/ui/dialogs/KisAsyncAnimationFramesSaveDialog.cpp
M  +2    -2    libs/ui/dialogs/KisAsyncAnimationFramesSaveDialog.h

https://invent.kde.org/graphics/krita/-/commit/2fbd233de9554bb94a98fbf53cb14dc3e457fe5d</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>