GIF Toolkit

Developed or developing a new product in PureBasic? Tell the world about it.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: GIF Toolkit

Post by JHPJHP »

Hi bgeraghty,

Thank you for commenting.

NB*: The built-in Image Editor is a work in progress.

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

Updated:
- started the database phase of the Image Editor
- added an active graphic effect
- refined the tool-window for better usability (includes real time updates)
- graphics can be moved using the arrow keys (excluding tool window focus)
- updated rotation to use the center point of the graphic
Last edited by JHPJHP on Tue Mar 20, 2018 12:21 am, edited 2 times in total.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: GIF Toolkit

Post by JHPJHP »

Use the built-in Image Editor to add various graphics to Spritesheets created from animated GIFs.
- changes are visible in real-time from both the GIF Player and Filmstrip (PNG mode)

NOTE: The GIF Player will display the added graphics using the Disposal Method of the loaded file.

Updated:
- Graphics List button (integrated SQLite database)
-- drag & drop graphics reordering / layering
- modified the Image Graphic option
- Frames Before and After options
-- global update for all parameters
- OffsetX / OffsetY options

NB*: Graphics can be added, updated, and deleted.
Last edited by JHPJHP on Fri May 03, 2019 8:02 am, edited 4 times in total.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: GIF Toolkit

Post by JHPJHP »

Frames Before and After example:
- load the file homer.gif
- butterfly graphics were added using the steps below

Note: The SQLite database can be deleted; it will be recreated when the editor is opened.

Frames Before and After directions:
1. Load a GIF
2. Double-click the Filmstrip (first frame)
3. Click one of the Graphic buttons
4. Draw the Graphic in the top part of the image
5. Select the [ and After ] option
6. Enter a value of 30 in the [ Offset Y ] field

NB*: Saved Graphics can be selected from the Graphics List button, and moved using the arrow keys (excluding tool window focus).
Last edited by JHPJHP on Mon Aug 02, 2021 8:33 pm, edited 3 times in total.
User avatar
RSBasic
Moderator
Moderator
Posts: 1218
Joined: Thu Dec 31, 2009 11:05 pm
Location: Gernsbach (Germany)
Contact:

Re: GIF Toolkit

Post by RSBasic »

Image
Image
Image
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: GIF Toolkit

Post by JHPJHP »

Hi RSBasic,

Thank you for the thumbs-up.

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

I thought with my last update, I could put this project away...

Originally, in order to keep the database small, I opted to load images from an external file. I quickly noticed a problem with this approach after moving around my program folders.

Updated:
- loaded images are saved to the database for future use

NB*: See the homer GIF for an example of a database image; the butterflies were added.
RASHAD
PureBasic Expert
PureBasic Expert
Posts: 4636
Joined: Sun Apr 12, 2009 6:27 am

Re: GIF Toolkit

Post by RASHAD »

Hi JHPJHP
Thanks for the good work
I am trying to think about something heavy (we are in need) to keep you busy :mrgreen:

Be tuned
Egypt my love
walbus
Addict
Addict
Posts: 929
Joined: Sat Mar 02, 2013 9:17 am

Re: GIF Toolkit

Post by walbus »

Hi JHPJHP, a friendly hint
The part for the post processing of the sheets is missing
You can no longer load them for further processing
The data from the sheets are also missing for further processing in other software
Also a resizing function for the sheets, it think..
There are always shifts if you want to scale a complete sheet afterwards
The handling is then considerably more difficult, because the offset of the frames is no longer correct
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: GIF Toolkit

Post by JHPJHP »

Hi RASHAD,

Thank you for your post.

Is my boredom that evident? Unfortunately, it is about not only programming, but also what I am programming. I have started three other projects, but put them aside due to a lack of motivation.

Hi walbus,

As with all my recent projects, this was a time-filler based on some temporary interest. I will fix any reported bugs, but I am currently satisfied with the results.

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

Updated:
- optimized parts of the code
- squashed a couple bugs

Frames Before and After:
- Graphic moving right to left / bottom to top
-- from the last frame, draw the Graphic where you want it to end
-- select the [ Frames Before ] option
-- set the offset value
- Graphic moving left to right / top to bottom
-- from the first frame, draw the Graphic where you want it to start
-- select the [ and After ] option
-- set the offset value
- Graphic moving back and forth / up and down
-- from the middle frame, draw the Graphic where you want it to start
-- select the [ Frames Before ] and [ and After ] options
-- set the offset value

NB*: Graphics will move at an angle when both the X/Y Offsets are set.
Last edited by JHPJHP on Fri May 18, 2018 4:31 am, edited 4 times in total.
walbus
Addict
Addict
Posts: 929
Joined: Sat Mar 02, 2013 9:17 am

Re: GIF Toolkit

Post by walbus »

Hi JHPJHP
You don't have to go to the limit
If someone needs the features, I think they can build them in
Last edited by walbus on Wed Mar 28, 2018 11:24 pm, edited 2 times in total.
bytecave
User
User
Posts: 40
Joined: Mon Aug 13, 2012 7:26 am

Re: GIF Toolkit

Post by bytecave »

<unhelpful comment> - JHPJHP: I absolutely love your web-site, nice job on it!
walbus
Addict
Addict
Posts: 929
Joined: Sat Mar 02, 2013 9:17 am

Re: GIF Toolkit

Post by walbus »

This is a discussion forum bytecave
Anyone can give their opinion
The work of JHPJHP is not belittled by my criticism and he is also not offended by it
Constructive criticism is always helpful
I don't think you even know what this is about
Last edited by walbus on Wed Mar 28, 2018 11:25 pm, edited 2 times in total.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: GIF Toolkit

Post by JHPJHP »

Hi bytecave and walbus,

It seems that I missed part of a conversation, probably for the best.

Thank you bytecave for your positive comment about my website; just the motivation I needed to continue working on it.

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

Updated:
- fixed a bug that would crash the program when pressing an arrow key in the Image Editor, without first opening the tool window
bytecave
User
User
Posts: 40
Joined: Mon Aug 13, 2012 7:26 am

Re: GIF Toolkit

Post by bytecave »

walbus wrote:This is a discussion forum bytecave
Anyone can give their opinion
The work of JHPJHP is not belittled by my criticism and he is also not offended by it
Constructive criticism is always helpful
I don't think you even know what this is about
Um, I was in no way responding to any comment by you, didn't even notice. I just like the website.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: GIF Toolkit

Post by JHPJHP »

Updated:
- patched a bug in the Image Editor
- fixed a problem with the Image Editor example

To view the example, select the file homer.gif from the default folder.
- the butterflies were added using the editor

Globally adding graphics, creating an overlay animation onto a GIF source can be used to create unique sprite sheets.

NB*: See my previous post for some simple instructions to adding your own effects.
Karellen
User
User
Posts: 82
Joined: Fri Aug 16, 2013 2:52 pm
Location: Germany

Re: GIF Toolkit

Post by Karellen »

Thanks JHPJHP,

your contributions here are priceless and so is the GIF Toolkit!
Stanley decided to go to the meeting room...
Locked