Jump to content

midora

Members
  • Posts

    1,782
  • Joined

  • Last visited

  • Days Won

    26

Posts posted by midora

  1. 'PNG Animations and Images' FileType Plugin (.PNG, .APNG)


    Download

    Find the latest version of the plugin here: ImAPNG.FileType v1.4.zip [2022-01-07]

    Thumbnail support for .apng file type: ImAPNG.Thumbnail v1.0.zip [2022-01-07]

    ImXYZ.Thumbnail.dll Installer for ImAPNG.Thumbnail: See 'GIF Animations and Images' FileType Plugin

     

    Summary

    Loads and saves[not supported] PNG animations and images.  

     

    Animated images contain a sequence of images called frames which a viewer application can show as an animation.

     

    Because paint.net decides on the file extension which file loader will be used you have to change the extension of the PNG file to .apng.

     

    On load the plugin loads all frames from the file and adds them as layers to a new Paint.NET document. Frame 1 will become the bottom layer and so on. Some information from the file (like frame durations or comments) will be stored in the layer names after the marker '//'.

     

    [not supported]
    On save the plugin will convert all layers to frames respecting the information found after the marker '//' in the layer names. The plugin does its best to reduce the size of the final file. The size depends on various settings.

     

    See also

    'GIF Animations and Images' FileType Plugin

    'WEBP Animations and Images' FileType Plugin

     

    Author / Copyright

    Martin Osieka
    2015-2022, Martin Osieka, Switzerland
    You may use this plugin together with Paint.NET w/o any restriction.

     

    Installation

    Follow the instructions carefully

    • Unzip the archive
    • Copy the folder ImAPNG.FileType together with its content (ImAPNG.FileType.dll/.dlc/.deps.json) into the FileTypes folder of paint.net. The location of the FileTypes folder depends on the installed variant of paint.net.

    To verify the installation you should restart Paint.NET and check that in the filetype popup of the open file selector dialog is an entry starting with APNG.

     

    Compatibility

    paint.net >= 4.3.2, 64bit and 32bit

     

    Supported languages

    English, Deutsch
    You may add your own translation to the .dlc file.

     

    Keywords

    FileType, PNG, APNG, Animated PNG, Animation

     

    History

    1.4 [2022-01-07]

    • Updated to libpng 1.6.37
    • Requires paint.net >= 4.3.2

    0.3 [2015-04-06] (12218 downöoads)

    • First public test release
    • Only loading is supported.
    • The plugin uses an unmanaged dll based on libpng with apng patch plus modifications. There is a variant for 32-bit and 64-bit environments.

     

    • Upvote 2
  2. The WebP plugin throws a meaningful exception if the file contains an animation, could the same be done for AVIF? In the moment just the first frame will be displayed.

    Would appreciate if the gif and png file types would do the same (but this would be Ricks part 😉 )

  3. As @otuncellisaid, a file type plugin may do this if you do not care about the memory size while the 'file' is loaded in paint.net.

     

    So define your on file type plugin REFI' and use a text file with the extension .refi to store the image references.

    There should be a specification describing the REFI file format. I.e.

     

    REFI specification:

    REFI files are text files using UTF-8 character set. Line separator should be CR LF.

    The first line must start with the signature #REFI#. Characters after the signature will be ignored.

    Lines starting with # are comment lines.

    Lines not starting with # describing layers (in the order bottom layer to top layer).

    The syntax of a layer line is: layername,visible,blendmode,opcity

    where

      'layername' is the fullpathname of the referenced image embedded in double quotes

      'visible' can be true or false

      'blendmode' is one of the layer blendmodes (i.e. normal) Ilist of amodes)llowed

      'opacity' is an integer in the range 0..255.

     

    #REFI#
    "c:\myimage\file1.png", true, normal, 255
    "c:\myimage\file2.jpg", false, normal, 128

     

    Load and save are easy to implement (assuming you restrict the allowed file types to simple ones).

     

    BUT

    I would expect that Rick says no. Because you are not just writing to the provided output stream. Cancel or errors during save are difficult to handle. You may destroy the original images.

     

     

     

     

     

     

     

  4. 1 hour ago, Absol said:

    I can't get access to layers from effect plugin? For what needs effect plugin if I can't get access layers to apply this effect?

    Reading the linked topic would tell you that you can access the selected layer.

     

    1 hour ago, Absol said:

    I think paintnet has very bad sdk and need use another tool ??? 

    A plugin interface is not very bad just because you can not do what you like to do.

×
×
  • Create New...