[ home / board list / faq / random / create / bans / search / manage / irc ] [ ]

/apng/ - Animated PNG

RIP in pieces GIF

Catalog

See 8chan's new software in development (discuss) (help out)
Name
Email
Subject
Comment *
File
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Options
Password (For file and post deletion.)

Allowed file types:jpg, jpeg, gif, png, webm, mp4
Max filesize is 8 MB.
Max image dimensions are 10000 x 10000.
You may upload 3 per post.


File: 1445976502462.png (3.69 MB, 450x260, 45:26, Krystal 4.png)

 No.312

I'll show you how to get this old plugin running on GIMP 2.8 for Windows 7 x64.

First you need to get the required files:

http://www.mediafire.com/download/ubme5oy751zw0zh/gimp-apng-0.1.0.win32.zip

The zip contains 2 files:

>file-apng.exe

>file-apng.ui

These files need to be copied in specific folders, the following paths assume you did a default installation of GIMP. If you didn't , it shouldn't be hard to locate them.

file-apng.exe

C:\Program Files\GIMP 2\lib\gimp\2.0\plug-ins

file-apng.ui

C:\Program Files\GIMP 2\32\lib\gimp\2.0\plug-ins

IMPORTANT: Please pay attention to this last path, notice this goes into the "32" folder, this is NOT the same folder were you copied the first file.

You will need to navigate to :

C:\Program Files\GIMP 2\32\lib\gimp\2.0

THEN CREATE the "plug-ins" folder

THEN PASTE file-apng.ui inside that folder.

Next we'll see how to use it to load and export APNG files inside GIMP.

we'll continue this later tonight

 No.313

Yeah sadly this plugin isn't quite all there. I've never been able to get it to actually save to .apng myself. It's just somewhat useful for opening APNGs in GIMP.


 No.315

File: 1446012198917-0.jpg (163.7 KB, 1489x592, 1489:592, (2015-10-27) 014.jpg)

File: 1446012198918-1.jpg (187.94 KB, 1479x583, 1479:583, (2015-10-27) 015.jpg)

>>312

First i will create an APNG from a video.

Using the version of Virtual Dub that supports APNG files i will select an arbitrary timelapse from this video and export it to APNG format.


 No.317

File: 1446012786669.jpg (76.76 KB, 630x774, 35:43, (2015-10-27) 013.jpg)

Now we will boot GIMP 2.8 and load the APNG file we created with Virtual Dub.

To do this we use the regular "Open.. " command, which will give us another dialog box.


 No.318

File: 1446013804560-0.jpg (90.45 KB, 906x820, 453:410, (2015-10-27) 000.jpg)

File: 1446013804561-1.jpg (107.47 KB, 906x820, 453:410, (2015-10-27) 001.jpg)

File: 1446013804561-2.jpg (120.63 KB, 779x778, 779:778, (2015-10-27) 002.jpg)

>>317

In the dialog box that popped when trying to open a file, we need to specify the type of file we want to load.

To do this, we need to navigate to the lower left area of the box where the "Select file type" option is located.

Once you click on it, an area where you can select from several image file types will be displayed.

We need to select PNG+APNG image as our desired file type in order for it to load correctly.

Once we select it we can finally load our desired APNG file correctly.

It will load as separate layers, one for each frame you saved, this is an indicator the file opened correctly.


 No.319

File: 1446014436980-0.jpg (138.63 KB, 779x778, 779:778, (2015-10-27) 003.jpg)

File: 1446014436980-1.jpg (95.88 KB, 779x540, 779:540, (2015-10-27) 004.jpg)

We can now work on the layers, play our APNG inside GIMP, optimize it, and do pretty much anything.

To test our new flashy APNG editing prowess, i performed an optimization of the APNG , which cuts down on the amount of used layers and then resized it to a smaller scale.

Next we will save our optimized and resized APNG.


 No.320

File: 1446016045070-0.jpg (83.11 KB, 226x854, 113:427, (2015-10-27) 005.jpg)

File: 1446016045072-1.jpg (101.68 KB, 303x836, 303:836, (2015-10-27) 006.jpg)

BEFORE SAVING ANYTHING, THIS IS A VERY IMPORTANT STEP, YOU MUST NOT MISS

I am sure you are familiar with the layer - brushes window on GIMP, it always to the right side of the main window and it displays all the layers of the image in a list.

Well it turns this window is yet even more important for the next reason, read carefully:

the APNG plugin will cause an error when trying to save an APNG image, if the first layer in the stack is not of the size of the whole image

Now to make things clear by "the first layer", i am referring to the layer that is on the very top of the stack list.

Notice in the pictures, that the first layer is called "Frame 289", so while it may be the last frame in the animation, as long as this is on top of the stack it will be the layer that needs to meet the size condition.

Very often, APNG files produced using Virtual Dub or other program, or even made by you, will not meet this condition.

Thankfully, a very easy way to fix this is to just right click the top layer , which will cause a drop down menu to show, and select Layer to image size. Our problems are gone.


 No.321

File: 1446016497270.jpg (110.79 KB, 773x531, 773:531, (2015-10-27) 007.jpg)

>>320

We will now proceed to save our APNG image.

To do this we will use the "Export as…" file option.

Some dialog and option boxes will pop up.


 No.322

File: 1446017002185-0.jpg (89.43 KB, 906x820, 453:410, (2015-10-27) 008.jpg)

File: 1446017002185-1.jpg (112.61 KB, 906x820, 453:410, (2015-10-27) 009.jpg)

File: 1446017002186-2.jpg (116.64 KB, 881x797, 881:797, (2015-10-27) 010.jpg)

>>321

As before we will need to specify the filetype we want to save the image as.

So we will select it from the list, just like when we opened the file.

Then clicking on Export will bring up a warning "File extension does not match", we will ignore this warning and click on Save anyway, which will bring up yet again our last dialog box.


 No.323

File: 1446017339496.jpg (118.79 KB, 899x807, 899:807, (2015-10-27) 012.jpg)

>>322

On this final step we will select from several options, the most important being the checkbox labeled As animation, should you forget to check it, you will end up with a plain PNG file without animation.

You can deselect the rest of the options and boost the compression to 9 to get a smaller file size.

Once we set our desired checkboxes we can finally click on Export and Eureka! we just saved our APNG file!


 No.324

File: 1446018235700.jpg (131.28 KB, 900x1273, 900:1273, krystal_by_viraljp-d3bvmo2.jpg)

So there gentlemen, this is the result of a full night and then some daylight hours of Advanced Google-fu

I am fucking tired as hell but i managed to make this plugin work as intended.

Hopefully you guys will be able to use it better than me, because i can't seem to grasp the advantages of APNG over WEBM video, at least not in the small resolution field.

As far as i care APNG is an excellent way of optimizing gif animations tho.

See you space cowboys!

furriness was ironical


 No.327

I don't have a /32/ folder in any of my GIMP installations. That because I'm on Windows XP? What's the alternate folder name?


 No.328

>>324

>I can't seem to grasp the advantages of APNG over WebM video, at least not in the small resolution field.

Animation formats like AGIF and APNG are generally able to provide superior lossless file sizes compared to lossless WebM. It's all about removing redundant visuals from previous frames, something which dedicated video formats are not capable of doing.


 No.329

>>327

Are you using 32bit XP?

In that case both files go in the same folder IIRC.


 No.332

>>320

Wow this was the problem I was always having, great job figuring it out!


 No.333

File: 1446131539712-0.png (242.27 KB, 256x224, 8:7, R-Type III hyperspace.png)

File: 1446131539712-1.png (270.04 KB, 256x224, 8:7, R-Type III hyperspace GIMP….png)

Unfortunately this plug-in (or GIMP itself) seems to still have some notable issues for APNG creation. One of which is that currently GIMP does not allow as fine of frame display control as is possible within APNG. Take a 60 FPS animation for instance. Converting this to frame display time, each frame should have 16.666… ms display. However, since GIMP's frame display only measures at the millisecond level, this must be rounded to 16ms or 17ms, creating some notable speed discrepancies.

Another option the APNG plug-in could really use is the ability to "use delay above for all frames", as the animated GIF export function has. This is useful for when you want to change the display time for all the frames in an animation at once.

Finally, it seems that you have to perform this Layer to image size step on every single undersized frame after optimizing the layers for differences or you end up with these annoying uncropped blank areas (that should be alpha channel transparency but aren't) on the margins of the undersized frames. Here's a comparison of an APNG assembled with apngasm and that same APNG opened with GIMP, optimized, and then re-saved with the APNG plug-in. I'm not sure why it's happening but additionally GIMP seems to be altering at least one of the colors in the process.


 No.334

File: 1446132077698.png (270.75 KB, 256x224, 8:7, R-Type III hyperspace GIMP….png)

>>333

I guess the cropping issue is still present even after performing Layer to image size on every single frame.


 No.335

>>334

Open in a separate tab to see it more clearly.


 No.336

>>333

Of course my GIMP/GAP could just be really old. I did this on GIMP 2.7.3/GAP 2.6.0. Maybe they've provided better frame display time precision in newer versions.




[Return][Go to top][Catalog][Post a Reply]
Delete Post [ ]
[]
[ home / board list / faq / random / create / bans / search / manage / irc ] [ ]