VideoHelp Forum
+ Reply to Thread
Results 1 to 3 of 3
Thread
  1. Hi, I'd like to create a GIF form a single image.
    The source is a PNG with transparency.
    https://upload.wikimedia.org/wikipedia/commons/thumb/1/17/Yin_yang.svg/2048px-Yin_yang.svg.png

    The code I put in Avspmod
    Code:
    ImageSource("C:\Users\antip\Desktop\yy\Yin and yang.png")
    
    Spline36Resize(64,64)
    Loop(0,360,1000) # or Trim(0,359)
    ConvertToRGB32()
    Rotate(endangle=359)
    It works but how to keep tansparency? Can I write it in some other better way?

    I could create the GIF using ffmpeg, but can I in another way?
    I thought in could encode the script in a mkv, then export all the images in a sequence and re assembly them in vdub2 exporting as a GIF or APNG, but I'm quite sure vdub can't handle transparency.
    Any other better suggestion, please?
    Last edited by maudit; 4th Sep 2023 at 09:09.
    Quote Quote  
  2. pixel_type="RGB32" to load the alpha channel

    Code:
    ImageSource("C:\Users\antip\Desktop\yy\Yin and yang.png", pixel_type="RGB32" )
    Quote Quote  
  3. Originally Posted by poisondeathray View Post
    pixel_type="RGB32" to load the alpha channel

    Code:
    ImageSource("C:\Users\antip\Desktop\yy\Yin and yang.png", pixel_type="RGB32" )
    ok thanks, it now handle transparency.
    Last edited by maudit; 4th Sep 2023 at 13:54.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!