Skip to content

Commit

Permalink
Effects > Animation > Background/Foreground: fully functional!
Browse files Browse the repository at this point in the history
Relates to #331

These effects are a simple but effective demonstration of how PD might tackle additional animation effects going forward.

Both effects use the same dialog under-the-hood.  The only difference between the two is whether the target layer gets painted beneath or above the other frames in the image.

The foreground tool in particular makes it trivial to e.g. create a watermark for your animation.  Just...

1) Load the existing animated file into PD
2) Create a new text or typography layer with your desired text
3) Use the Effects > Animation > Foreground effect to merge the new text layer with all other layers (and optionally delete the layer after, since it's no longer required)
4) Save the finished animation back out to file!

Next up is to add opacity and blend-mode options to the dialog, so that you have more control over how the background/foreground gets painted.

If I'm feeling ambitious, I may also add the option to move the background/foreground between frames.  This could allow for fun parallax effects... (we'll see how ambitious I'm feeling in the coming days, ha)
  • Loading branch information
tannerhelland committed Nov 13, 2020
1 parent 5bb26c4 commit 06a4f1d
Show file tree
Hide file tree
Showing 15 changed files with 517 additions and 127 deletions.
32 changes: 26 additions & 6 deletions App/PhotoDemon/Languages/French.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<langid>fr-FR</langid>
<langname>Français</langname>
<langversion>6.7.520</langversion>
<langversion>6.7.522</langversion>
<langstatus>Complete</langstatus>

<author>Jean Jacques Piedfort (orig. Frank Donckers)</author>
Expand Down Expand Up @@ -7072,17 +7072,37 @@ If you want to save it with a different file name, please select 'Cancel', then

<!-- Edit_UndoHistory.frm contains 8 phrases. 4 were duplicates of existing phrases, so only 4 new phrases were written to file. -->

<phrase>
<original>after processing, delete this layer</original>
<translation></translation>
</phrase>

<phrase>
<original>background layer</original>
<translation></translation>
</phrase>

<phrase>
<original>Applying background</original>
<translation></translation>
</phrase>

<phrase>
<original>Applying foreground</original>
<translation></translation>
</phrase>

<phrase>
<original>foreground layer</original>
<translation></translation>
</phrase>

<phrase>
<original>waiting</original>
<translation>attendre</translation>
</phrase>

<!-- Effects_Animation_Background.frm contains 7 phrases. 5 were duplicates of existing phrases, so only 2 new phrases were written to file. -->
<!-- Effects_Animation_Background.frm contains 19 phrases. 13 were duplicates of existing phrases, so only 6 new phrases were written to file. -->

<phrase>
<original>random seed</original>
Expand Down Expand Up @@ -13295,10 +13315,10 @@ Si vous choisissez de désactiver les mises à jour, n'oubliez pas de visiter ph

<!-- Automatic text extraction complete. -->

<phrasecount>2513</phrasecount>
<phrasecount>2517</phrasecount>

<!-- As of this build, PhotoDemon contains 5115 phrases. -->
<!-- 2602 are duplicates, so only 2513 unique phrases have been written to file. -->
<!-- These 2513 phrases contain approximately 11585 total words. -->
<!-- As of this build, PhotoDemon contains 5127 phrases. -->
<!-- 2610 are duplicates, so only 2517 unique phrases have been written to file. -->
<!-- These 2517 phrases contain approximately 11596 total words. -->

</pdData>
32 changes: 26 additions & 6 deletions App/PhotoDemon/Languages/German.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<langid>de-DE</langid>
<langname>Deutsch (DE)</langname>
<langversion>9.0.174</langversion>
<langversion>9.0.176</langversion>
<langstatus>Up-to-date</langstatus>

<author>rk (ehem. Frank Donckers, Helmut Kuerbiss)</author>
Expand Down Expand Up @@ -7072,17 +7072,37 @@ If you want to save it with a different file name, please select 'Cancel', then

<!-- Edit_UndoHistory.frm contains 8 phrases. 4 were duplicates of existing phrases, so only 4 new phrases were written to file. -->

<phrase>
<original>after processing, delete this layer</original>
<translation></translation>
</phrase>

<phrase>
<original>background layer</original>
<translation></translation>
</phrase>

<phrase>
<original>Applying background</original>
<translation></translation>
</phrase>

<phrase>
<original>Applying foreground</original>
<translation></translation>
</phrase>

<phrase>
<original>foreground layer</original>
<translation></translation>
</phrase>

<phrase>
<original>waiting</original>
<translation>Warten</translation>
</phrase>

<!-- Effects_Animation_Background.frm contains 7 phrases. 5 were duplicates of existing phrases, so only 2 new phrases were written to file. -->
<!-- Effects_Animation_Background.frm contains 19 phrases. 13 were duplicates of existing phrases, so only 6 new phrases were written to file. -->

<phrase>
<original>random seed</original>
Expand Down Expand Up @@ -13278,10 +13298,10 @@ Wenn Sie trotzdem Updates deaktivieren möchten, vergessen Sie nicht, photodemon

<!-- Automatic text extraction complete. -->

<phrasecount>2513</phrasecount>
<phrasecount>2517</phrasecount>

<!-- As of this build, PhotoDemon contains 5115 phrases. -->
<!-- 2602 are duplicates, so only 2513 unique phrases have been written to file. -->
<!-- These 2513 phrases contain approximately 11585 total words. -->
<!-- As of this build, PhotoDemon contains 5127 phrases. -->
<!-- 2610 are duplicates, so only 2517 unique phrases have been written to file. -->
<!-- These 2517 phrases contain approximately 11596 total words. -->

</pdData>
32 changes: 26 additions & 6 deletions App/PhotoDemon/Languages/Indonesian.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<langid>id-ID</langid>
<langname>Indonesian</langname>
<langversion>6.6.479</langversion>
<langversion>6.6.481</langversion>
<langstatus>Complete</langstatus>

<author>Ari Sohandri Putra (7.0 updates by Google Translate)</author>
Expand Down Expand Up @@ -7072,17 +7072,37 @@ If anda mahu menyimpannya dengan nama fail yang berbeza, sila pilih 'Batal', kem

<!-- Edit_UndoHistory.frm contains 8 phrases. 4 were duplicates of existing phrases, so only 4 new phrases were written to file. -->

<phrase>
<original>after processing, delete this layer</original>
<translation></translation>
</phrase>

<phrase>
<original>background layer</original>
<translation></translation>
</phrase>

<phrase>
<original>Applying background</original>
<translation></translation>
</phrase>

<phrase>
<original>Applying foreground</original>
<translation></translation>
</phrase>

<phrase>
<original>foreground layer</original>
<translation></translation>
</phrase>

<phrase>
<original>waiting</original>
<translation></translation>
</phrase>

<!-- Effects_Animation_Background.frm contains 7 phrases. 5 were duplicates of existing phrases, so only 2 new phrases were written to file. -->
<!-- Effects_Animation_Background.frm contains 19 phrases. 13 were duplicates of existing phrases, so only 6 new phrases were written to file. -->

<phrase>
<original>random seed</original>
Expand Down Expand Up @@ -13280,10 +13300,10 @@ Jika anda masih memilih untuk melumpuhkan Perbarui, jangan lupa untuk mengunjung

<!-- Automatic text extraction complete. -->

<phrasecount>2513</phrasecount>
<phrasecount>2517</phrasecount>

<!-- As of this build, PhotoDemon contains 5115 phrases. -->
<!-- 2602 are duplicates, so only 2513 unique phrases have been written to file. -->
<!-- These 2513 phrases contain approximately 11585 total words. -->
<!-- As of this build, PhotoDemon contains 5127 phrases. -->
<!-- 2610 are duplicates, so only 2517 unique phrases have been written to file. -->
<!-- These 2517 phrases contain approximately 11596 total words. -->

</pdData>
32 changes: 26 additions & 6 deletions App/PhotoDemon/Languages/Italian.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<langid>it-IT</langid>
<langname>Italiano</langname>
<langversion>8.0.31</langversion>
<langversion>8.0.33</langversion>
<langstatus>Completa</langstatus>

<author>GioRock (8.0 updates by DeepL.com)</author>
Expand Down Expand Up @@ -7070,17 +7070,37 @@ Se vuoi salvare il file dell'immagine con un altro nome, per favore seleziona 'A

<!-- Edit_UndoHistory.frm contains 8 phrases. 4 were duplicates of existing phrases, so only 4 new phrases were written to file. -->

<phrase>
<original>after processing, delete this layer</original>
<translation></translation>
</phrase>

<phrase>
<original>background layer</original>
<translation></translation>
</phrase>

<phrase>
<original>Applying background</original>
<translation></translation>
</phrase>

<phrase>
<original>Applying foreground</original>
<translation></translation>
</phrase>

<phrase>
<original>foreground layer</original>
<translation></translation>
</phrase>

<phrase>
<original>waiting</original>
<translation>in attesa</translation>
</phrase>

<!-- Effects_Animation_Background.frm contains 7 phrases. 5 were duplicates of existing phrases, so only 2 new phrases were written to file. -->
<!-- Effects_Animation_Background.frm contains 19 phrases. 13 were duplicates of existing phrases, so only 6 new phrases were written to file. -->

<phrase>
<original>random seed</original>
Expand Down Expand Up @@ -13287,10 +13307,10 @@ Se si sceglie ancora di disabilitare gli aggiornamenti, non dimenticate di visit

<!-- Automatic text extraction complete. -->

<phrasecount>2513</phrasecount>
<phrasecount>2517</phrasecount>

<!-- As of this build, PhotoDemon contains 5115 phrases. -->
<!-- 2602 are duplicates, so only 2513 unique phrases have been written to file. -->
<!-- These 2513 phrases contain approximately 11585 total words. -->
<!-- As of this build, PhotoDemon contains 5127 phrases. -->
<!-- 2610 are duplicates, so only 2517 unique phrases have been written to file. -->
<!-- These 2517 phrases contain approximately 11596 total words. -->

</pdData>
32 changes: 26 additions & 6 deletions App/PhotoDemon/Languages/Macedonian.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<langid>mk-MK</langid>
<langname>македонски</langname>
<langversion>1.0.333</langversion>
<langversion>1.0.335</langversion>
<langstatus>incomplete</langstatus>

<author>Бобан Ѓерасимоски</author>
Expand Down Expand Up @@ -7066,17 +7066,37 @@ If сакате да ја спаси со друго име на датотек

<!-- Edit_UndoHistory.frm contains 8 phrases. 4 were duplicates of existing phrases, so only 4 new phrases were written to file. -->

<phrase>
<original>after processing, delete this layer</original>
<translation></translation>
</phrase>

<phrase>
<original>background layer</original>
<translation></translation>
</phrase>

<phrase>
<original>Applying background</original>
<translation></translation>
</phrase>

<phrase>
<original>Applying foreground</original>
<translation></translation>
</phrase>

<phrase>
<original>foreground layer</original>
<translation></translation>
</phrase>

<phrase>
<original>waiting</original>
<translation></translation>
</phrase>

<!-- Effects_Animation_Background.frm contains 7 phrases. 5 were duplicates of existing phrases, so only 2 new phrases were written to file. -->
<!-- Effects_Animation_Background.frm contains 19 phrases. 13 were duplicates of existing phrases, so only 6 new phrases were written to file. -->

<phrase>
<original>random seed</original>
Expand Down Expand Up @@ -13274,10 +13294,10 @@ If сеуште изберете да го исклучите ажурирања

<!-- Automatic text extraction complete. -->

<phrasecount>2513</phrasecount>
<phrasecount>2517</phrasecount>

<!-- As of this build, PhotoDemon contains 5115 phrases. -->
<!-- 2602 are duplicates, so only 2513 unique phrases have been written to file. -->
<!-- These 2513 phrases contain approximately 11585 total words. -->
<!-- As of this build, PhotoDemon contains 5127 phrases. -->
<!-- 2610 are duplicates, so only 2517 unique phrases have been written to file. -->
<!-- These 2517 phrases contain approximately 11596 total words. -->

</pdData>
32 changes: 26 additions & 6 deletions App/PhotoDemon/Languages/Master/MASTER.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<langid>en-US</langid>
<langname>English (US) - MASTER COPY</langname>
<langversion>8.9.177</langversion>
<langversion>8.9.182</langversion>
<langstatus>Automatically generated from PhotoDemon's source code</langstatus>

<author>Tanner Helland</author>
Expand Down Expand Up @@ -7015,17 +7015,37 @@ If you want to save it with a different file name, please select 'Cancel', then

<!-- Edit_UndoHistory.frm contains 8 phrases. 4 were duplicates of existing phrases, so only 4 new phrases were written to file. -->

<phrase>
<original>after processing, delete this layer</original>
<translation></translation>
</phrase>

<phrase>
<original>background layer</original>
<translation></translation>
</phrase>

<phrase>
<original>Applying background</original>
<translation></translation>
</phrase>

<phrase>
<original>Applying foreground</original>
<translation></translation>
</phrase>

<phrase>
<original>foreground layer</original>
<translation></translation>
</phrase>

<phrase>
<original>waiting</original>
<translation></translation>
</phrase>

<!-- Effects_Animation_Background.frm contains 7 phrases. 5 were duplicates of existing phrases, so only 2 new phrases were written to file. -->
<!-- Effects_Animation_Background.frm contains 19 phrases. 13 were duplicates of existing phrases, so only 6 new phrases were written to file. -->

<phrase>
<original>random seed</original>
Expand Down Expand Up @@ -13201,10 +13221,10 @@ If you still choose to disable updates, don't forget to visit photodemon.org fro

<!-- Automatic text extraction complete. -->

<phrasecount>2513</phrasecount>
<phrasecount>2517</phrasecount>

<!-- As of this build, PhotoDemon contains 5115 phrases. -->
<!-- 2602 are duplicates, so only 2513 unique phrases have been written to file. -->
<!-- These 2513 phrases contain approximately 11585 total words. -->
<!-- As of this build, PhotoDemon contains 5127 phrases. -->
<!-- 2610 are duplicates, so only 2517 unique phrases have been written to file. -->
<!-- These 2517 phrases contain approximately 11596 total words. -->

</pdData>

0 comments on commit 06a4f1d

Please sign in to comment.