Page 1 of 5
GIF Toolkit
Posted: Mon Feb 27, 2017 10:56 pm
by JHPJHP
Re: GIF Toolkit
Posted: Mon Feb 27, 2017 11:33 pm
by boyoss
Excellent idea
thank you for sharing
Re: GIF Toolkit
Posted: Tue Feb 28, 2017 2:14 am
by BasicallyPure
Does this require the new beta version of PB or can I run it with version 5.50?
Re: GIF Toolkit
Posted: Tue Feb 28, 2017 2:27 am
by JHPJHP
Hi boyoss,
Thank you for your comments.
------------------------------------------------
Hi BasicallyPure,
The examples should work in any version of PureBasic, but may require some minor changes due to PureBasic Constants, etc. not existing in earlier versions of the IDE
Re: GIF Toolkit
Posted: Tue Feb 28, 2017 5:26 pm
by Kwai chang caine
Thanks JHPJHP

Re: GIF Toolkit
Posted: Wed Feb 07, 2018 2:35 am
by JHPJHP
Hi Kwai chang caine,
You're very much welcome.
----------------------------------------
Updated:
- gif_decode.pb
-- modified the way transparency was handled
- gif_detail.pb
-- returns all available GIF information by frame
NOTE:
- this toolkit does not use the PureBasic GIF decoder
- gif_encode.pb is still unfinished (missing the LZW Encode algorithm)
- when time permits, will include a GIF to Spritesheet utility
Re: GIF Toolkit
Posted: Wed Feb 07, 2018 2:07 pm
by Kwai chang caine
Re: GIF Toolkit
Posted: Wed Feb 07, 2018 8:25 pm
by JHPJHP
Hi Kwai chang caine,
Thank you for your post.
The example
gif_extract.pb is working as expected...
- this can be tested using the example
gif_animate.pb; combine the extracted frames into an animated GIF
Animated GIFs:
Chapter 17 of Learning Web Design, 2nd edition wrote:The optimization process saves only the pixels that change from frame to frame and throws out redundant pixels.
The result is a big savings in file size with no change in the animation’s appearance.
NB*: I will add an option to the soon-to-be-released GIF Toolkit utility, to save layered images as individual frames.
----------------------------------------------
Updated:
-
gif_decode.pb
-- modified Disposal Method
-- modified DecodeLZW Procedure
Re: GIF Toolkit
Posted: Thu Feb 08, 2018 2:19 pm
by Kwai chang caine
Aaaaah ok !!! excuse me for disturbe you for nothing

I have a little bit thinking to that when i have see the result, but like JASC save all the image, i believe it's a problem
It's right the picture are merveillous, it's the rolls royce of the GIF

i'm in the paradise
So thanks again for your splendid works, like all the others of JHPJHP

Re: GIF Toolkit
Posted: Thu Feb 08, 2018 7:16 pm
by JHPJHP
Hi Kwai chang caine,
Kwai chang caine wrote:... excuse me for disturbe you for nothing
On the contrary, you are a very helpful member of this forum who not only takes the time to test the various code contributions, but also provide valuable feedback. Thank you

Re: GIF Toolkit
Posted: Thu Feb 08, 2018 9:49 pm
by walbus
I am looking forward to the Sprite Sheet tool
In itself, a sprite sheet is the better GIF
Much more flexible and easier to handle
Re: GIF Toolkit
Posted: Fri Feb 09, 2018 4:41 am
by JHPJHP
Hi walbus,
I like the package aspect of a GIF, but it does have some drawbacks.
Updated:
- GIFToolkit.pb: GIF Toolkit GUI (currently only formatted for Windows, but is cross-platform)
This is an unfinished product, but should give you an idea of where I am heading...
- most of the backend scripts have already been written (see the scripts folder)
- the top GIF player will display the animation
- each button will display an area with additional settings
- the bottom filmstrip will display individual frames, controlled by the above trackbar
Re: GIF Toolkit
Posted: Fri Feb 09, 2018 8:28 am
by walbus
Yes, with a filmstrip looks good
Re: GIF Toolkit
Posted: Sat Feb 10, 2018 6:45 am
by JHPJHP
Hi walbus,
Had a couple of hours today to work on the GIF Toolkit; currently only the thumbnail player and transparency coloring are completed.
- double-click the thumbnail player, while a GIF is loaded, to open the GIF in its original size
NB*: All the previous examples are still available from the scripts folder.
Re: GIF Toolkit
Posted: Sat Feb 10, 2018 7:33 pm
by Kwai chang caine