It is currently Wed Feb 19, 2020 12:07 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 61 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next
Author Message
 Post subject: Re: GIF Toolkit
PostPosted: Sun May 06, 2018 6:32 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1622
Hi Karellen,

Thank you for your post, it is nice to know that the Toolkit or the scripts therein might find a use.

Cheers :!:

_________________

If you ask a question and a forum member takes the time to answer, have the courtesy to post a timely thank you.

Downloads moved to My PureBasic Stuff.
_________________


Top
 Profile  
Reply with quote  
 Post subject: Re: GIF Toolkit
PostPosted: Mon May 07, 2018 4:54 am 
Offline
User
User
User avatar

Joined: Mon Dec 11, 2017 8:44 am
Posts: 11
Location: Australia
Have been following this thread for a while now as I am interested in saving GIF files from my art drawing program. You're programs are really fantastic :D

Question for JHPJHP or others if someone knows, I hope it is ok!

I've been looking at the gif_encode script and trying to work out if I can specify multiple frames for image source to be saved as GIF rather than the example which just saves one frame directly from the canvas gadget? From what I can tell it only currently saves 1 frame and I can't workout how \outputbuffer is set or if multiple frames are supported :oops:

My program displays an animated sequence of images and can save each frame as PNG files, however ideally I want to be able to export all frames as GIF.

Hope you can offer any advice thank you :?:


Top
 Profile  
Reply with quote  
 Post subject: Re: GIF Toolkit
PostPosted: Mon May 07, 2018 6:30 am 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1622
Hi FourthStone,

The example gif_encode.pb is unfinished.. I have not gotten around to completing the LZW encoding algorithm.

Take a look at this post by netmaestro: GIF Workshop alpha 1 - All platforms.

Good luck.

_________________

If you ask a question and a forum member takes the time to answer, have the courtesy to post a timely thank you.

Downloads moved to My PureBasic Stuff.
_________________


Top
 Profile  
Reply with quote  
 Post subject: Re: GIF Toolkit
PostPosted: Mon May 07, 2018 11:12 pm 
Offline
User
User
User avatar

Joined: Mon Dec 11, 2017 8:44 am
Posts: 11
Location: Australia
Thank you JHPJHP, that looks like what I'm after :D



Edit by André: deleted all following posts with senseless personal attacks including publicly posted PM. Back to topic please! :D


Top
 Profile  
Reply with quote  
 Post subject: Re: GIF Toolkit
PostPosted: Mon Apr 08, 2019 12:00 am 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1622
Updated:
- improved Extract Frames
- improved GIF Details
- other minor enhancements
- squashed a couple bugs

Extract Frames
Transparent background color can now be set for both PNG and GIF files.
- changing the transparent GIF background color may force a Disposal Method change

GIF Details
Added a button to open a window with a zoomed version of the GIF details.
- pressing the GIF Details button more then once will toggle text color

NOTE
Left-Double-Click inside the thumbnail GIF area to set the location back to the current folder.
Right-Double-Click inside the thumbnail GIF area to set the location back to the default folder.

_________________

If you ask a question and a forum member takes the time to answer, have the courtesy to post a timely thank you.

Downloads moved to My PureBasic Stuff.
_________________


Last edited by JHPJHP on Wed Apr 10, 2019 2:35 pm, edited 2 times in total.

Top
 Profile  
Reply with quote  
 Post subject: GIF Toolkit
PostPosted: Wed Apr 10, 2019 5:40 am 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1622
Updated:
- threaded animation
- optimized color tables
- squashed a couple bugs

Threaded Animation
Switched from a timer display to threaded for improved GIF animation.

The update also includes a new standalone script gif_patch.pb and an improved version of gif_decode.pb. Both files can be found in the scripts folder.

NB*: The example gif_patch.pb can modify GIF parameters in-place. In a future release it will be added to the main application, accessible through a user interface.

_________________

If you ask a question and a forum member takes the time to answer, have the courtesy to post a timely thank you.

Downloads moved to My PureBasic Stuff.
_________________


Top
 Profile  
Reply with quote  
 Post subject: Re: GIF Toolkit
PostPosted: Thu Apr 25, 2019 8:32 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1622
Updated:
- added an In-Place Editor window
- squashed some bugs

In-Place Editor
Double-click a GIF icon from the main window to open the In-Place Editor.
Some GIF options are not accessible in this mode; might be updated in a future release.

NB*: The examples located in the scripts folder have also been updated with multiple improvements.

_________________

If you ask a question and a forum member takes the time to answer, have the courtesy to post a timely thank you.

Downloads moved to My PureBasic Stuff.
_________________


Last edited by JHPJHP on Sat Apr 27, 2019 11:20 am, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: GIF Toolkit
PostPosted: Sat Apr 27, 2019 11:26 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1622
Updated:
- added a Custom Palette window to the In-Place Editor
- added Clear Comment checkbox
- numerous minor improvements
- squashed a few more bugs

Custom Palette
Press the ButtonImageGadget to open the Custom Palette window.
Includes a group of predefined palettes, as well as the ability to set a user-defined palette.
Some of the predefined palettes will populate the custom palette fields for easy manipulation.

NB*: Individual palette colors can be changed from the In-Place Editor window.

_________________

If you ask a question and a forum member takes the time to answer, have the courtesy to post a timely thank you.

Downloads moved to My PureBasic Stuff.
_________________


Top
 Profile  
Reply with quote  
 Post subject: Re: GIF Toolkit
PostPosted: Mon Apr 29, 2019 8:39 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1622
Updated:
- added the option to set individual palette changes to all frames
- squashed a few bugs

Reset All Frames: Reset values in all frames; providing the In-Place window had not been previously closed; applied values can also be reset.
Apply All Frames: Changes made to the current frame will be applied across all frames, excluding palette changes; see NOTES.
Apply Modified Frames: Only the changes made to individual frames will be applied.

NOTES:
The option to set palette changes across all frames occurs when the mouse leaves the modified palette, providing other palettes exist.
Setting a custom palette is global by default.
Both apply buttons will save palette changes to individual or all frames.

Image

_________________

If you ask a question and a forum member takes the time to answer, have the courtesy to post a timely thank you.

Downloads moved to My PureBasic Stuff.
_________________


Last edited by JHPJHP on Fri May 03, 2019 4:52 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: GIF Toolkit
PostPosted: Sat May 04, 2019 8:22 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1622
Updated:
- enhanced Color Palette
- added Arrow Keys frame selection
- added Drag and Drop GIF loading
- added a new Thumbnail Viewer graphic
- added quick access Directory buttons
- fixed a bug that would crash the program under some conditions

Color Palette
Moving the mouse pointer over the color palette will display an image of the current frame.
Real-time color changes will show in the pixels of the opened image that reference the palette index the mouse pointer is over.
Select a palette index to set the color reference with the user-defined color.
Select a previously set palette index to reset the default color, providing the mouse pointer has not left the color palette since the index was first updated.

Arrow Keys
From the In-Place Editor frames can be changed using the arrow keys. If the mouse pointer is over the color palette, the Index image is also updated.

Drag and Drop
Drag and drop a single GIF onto the Thumbnail Viewer or GIF File List to alternately load an animation.

Image

_________________

If you ask a question and a forum member takes the time to answer, have the courtesy to post a timely thank you.

Downloads moved to My PureBasic Stuff.
_________________


Top
 Profile  
Reply with quote  
 Post subject: Re: GIF Toolkit
PostPosted: Mon May 06, 2019 4:03 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1622
Updated:
- enhanced the Animation Viewer window
- fixed a couple issues

Animation Viewer
The new animation viewer is Windows only.
Double-click the thumbnail animation to open.

A version of this feature has been included in Windows Services & Other Stuff; adapted from Book & Viewer & Magnify (Image_Viewer).

NB*: While the GIF Toolkit scripts are cross platform, currently only the Windows version is supported.

_________________

If you ask a question and a forum member takes the time to answer, have the courtesy to post a timely thank you.

Downloads moved to My PureBasic Stuff.
_________________


Last edited by JHPJHP on Fri May 10, 2019 7:07 am, edited 7 times in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: GIF Toolkit
PostPosted: Mon May 06, 2019 4:09 pm 
Offline
Moderator
Moderator
User avatar

Joined: Thu Dec 31, 2009 11:05 pm
Posts: 1110
Location: Gernsbach (Germany)
Great Image

_________________
ImageImageImageImage Image


Top
 Profile  
Reply with quote  
 Post subject: Re: GIF Toolkit
PostPosted: Fri May 10, 2019 7:06 am 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1622
Hi RSBasic,

Thank you for the thumbs-up :wink:

---------------------------------------------------------------

Updated:
- enhanced the Animation Viewer
- added Program Parameter support (context menu "Open with")
- small changes to the Image Editor
- included additional ORBO animated GIFs
- fixed a couple issues

Animation Viewer
Encoded images are now scaled to fit the desktop.
Added frame data, close button, pause/play button, and navigation buttons.
Touched-up the viewer graphic using GIMP.

NB*: The size of the download has increased due to the additional GIF, but the animations are so good that I feel the trade-off was worth it.

_________________

If you ask a question and a forum member takes the time to answer, have the courtesy to post a timely thank you.

Downloads moved to My PureBasic Stuff.
_________________


Top
 Profile  
Reply with quote  
 Post subject: Re: GIF Toolkit
PostPosted: Fri May 10, 2019 4:22 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1622
Updated:
- added Show/Hide frame data button
- enhanced the Animation Viewer buttons

Image

_________________

If you ask a question and a forum member takes the time to answer, have the courtesy to post a timely thank you.

Downloads moved to My PureBasic Stuff.
_________________


Top
 Profile  
Reply with quote  
 Post subject: Re: GIF Toolkit
PostPosted: Fri Jan 24, 2020 9:31 am 
Offline
User
User

Joined: Wed Nov 06, 2019 10:28 am
Posts: 48
Hi JHPJHP !

I'm using your Gif Toolkit to load splash window in my application. Until now it was easy because the gif file was stored in the install folder.
Now I would like to compile the gif file with my exe (through IncludeBinary).

So here is my question : Can I use your toolkit this way ? the _DecodeGIF function need a file to be read not a pointer of the image in memory (the one I can get from my DATASection)

Thanks for your help.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 61 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye