Hi tatanas,
If you're not already aware, PureBasic includes a built-in GIF decoder.
Creating a memory example only requires the CatchImage function and a DataSection.
Instead of a DataSection with a simple path and filename, I chose to create a binary version packed into an IncludeFile.
A new example has been added to the latest version of Windows Services & Other Stuff.
- Other_Stuff\AnimatedGIF\UseGIFImageDecoder_Memory.pb
- Other_Stuff\AnimatedGIF\includes\DataSection.pbi
NB*: DataSection.pbi was created using the Bin2Data tool written by ts-soft.
----------------------------------------------------
A new example has been added to the latest version of GIF Toolkit.
- GIF_Toolkit_SRC_BIN\scripts\gif_decode_memory.pb
- GIF_Toolkit_SRC_BIN\scripts\includes\decode_memory_procedures.pbi
- GIF_Toolkit_SRC_BIN\scripts\includes\decode_datasection.pbi
gif_decode_memory.pb
- very similar to gif_decode.pb
decode_memory_procedures.pbi
- two updated procedures: _DecodeMemoryGIF, DecodeMemoryGIF (formally _DecodeGIF, DecodeGIF)
decode_datasection.pbi
- created using the Bin2Data tool written by ts-soft.
GIF Toolkit
Re: GIF Toolkit
Updated:
- some minor improvements
- squashed a couple bugs
NOTES:
All downloads require an access key.
Access key is emailed after a one time $20 CAD donation.
Good for all current and future scripts, programs, and updates.
- some minor improvements
- squashed a couple bugs
NOTES:
All downloads require an access key.
Access key is emailed after a one time $20 CAD donation.
Good for all current and future scripts, programs, and updates.
Last edited by JHPJHP on Sat Jan 21, 2023 1:53 am, edited 3 times in total.
Re: GIF Toolkit
Updated:
- added a DPI include file
- added command parameter: SetDPI
- some minor improvements to the Viewer
DPI Include File: \includes\DPI_sources.pbi
Command Parameter: SetDPI: Set with executable to activate DPI scaling
![Image](https://vmm75q.by.files.1drv.com/y4mmZTOMPcJCcnyfGodkeUBh8LVfAKVXctin5VgCBuy1f9v5JdGfM4ruFHlHZhLSHTWhDXoo2huOB_wIRatqD_oa-PHLBXdHNz1PEu-4NmTBvMm7JkY36nKYjrbGFYojHtC6XgGdYy0icJ0bCVms6yNy6VdfjmCsnzHoKtXI73byfMeRKamQUcu9wtLF_ZNdvgSCOjxrQ6hooRFl2J_ZaZAOA?width=660&height=401&cropmode=none)
- added a DPI include file
- added command parameter: SetDPI
- some minor improvements to the Viewer
DPI Include File: \includes\DPI_sources.pbi
Command Parameter: SetDPI: Set with executable to activate DPI scaling
Re: GIF Toolkit
Updated:
- added a Negative color palette option to the In-Place Editor
- fixed a small issue that occurred when setting a custom color palette
- numerous small improvements
NB*: Spider Web Drawing has also been updated to include a Negative color algorithm.
![Image](https://sat02pap001files.storage.live.com/y4mLTFI-Vw7NNURv_a6ylf4KkjpK3wRFtfujEkrdtMgwo4jeHcsUhkBoXDxinWzU2Y3JCCubjxL3mhGk_hkuyHNOVXrdVZTBRyrssLaenQ3CbyJr1NyimNqYqd2-AoPZmLPXenLh8Lo8OCO3cnU_ogb3eyugzskM741umDc5v2wdelhx95vRjeMwX7ZFQdEZ3rl?width=1024&height=620&cropmode=none)
- added a Negative color palette option to the In-Place Editor
- fixed a small issue that occurred when setting a custom color palette
- numerous small improvements
NB*: Spider Web Drawing has also been updated to include a Negative color algorithm.
Last edited by JHPJHP on Wed Oct 27, 2021 7:46 pm, edited 2 times in total.
Re: GIF Toolkit
Updated:
- significant improvements to the Image Editor
- various other improvements
- created both x86 and x64 binaries
- squashed a couple small bugs
Image Editor
Previously objects could only be selected and deleted from the Graphics List.
Objects can now be selected and deleted directly from the display area.
Z-order determines which overlapped object receives focus.
Z-order can be modified from the Graphics List via drag n' drop.
In addition to setting X/Y parameters, selected object can also be moved using the arrow keys.
Ctrl + Arrow Keys will change frames.
- significant improvements to the Image Editor
- various other improvements
- created both x86 and x64 binaries
- squashed a couple small bugs
Image Editor
Previously objects could only be selected and deleted from the Graphics List.
Objects can now be selected and deleted directly from the display area.
Z-order determines which overlapped object receives focus.
Z-order can be modified from the Graphics List via drag n' drop.
In addition to setting X/Y parameters, selected object can also be moved using the arrow keys.
Ctrl + Arrow Keys will change frames.
Last edited by JHPJHP on Sat Jan 21, 2023 1:53 am, edited 2 times in total.
Re: GIF Toolkit
Updated:
- small fix to the In-Place Editor
- significant improvements to the Custom Color Palette algorithms
In-Place Editor
After a previous update, the Apply buttons were not working as designed.
![Image](https://sat02pap001files.storage.live.com/y4mgxvTWSfkdGeJQRX8OlcDWdMm3oTkZCmpgZh95VhBTny3uaSf1L9t9VdDc3O7d2nzAHhMACIA0vsCc7qVxakIpgNs7PsSlt6NnftI3yYVmfOTKuG2gwnpBNe6aTtPpgbevPGQ3ByX-ObXWJmqF7kfLQzH33UYe_P6CO_ewi2FnB9JXPXO4EfV_F25CDEPlr_z?width=497&height=561&cropmode=none)
- small fix to the In-Place Editor
- significant improvements to the Custom Color Palette algorithms
In-Place Editor
After a previous update, the Apply buttons were not working as designed.
Re: GIF Toolkit
Updated:
- improved image editor
- squashed a couple bugs
Squashed Bugs
After updating to PureBasic 6.01 LTS beta 1 (x86/64) the GIF Toolkit wasn't working as expected. Upon closer examination I found an If/Then argument that was missing nested brackets; this same If/Then argument was used in numerous places throughout the code. This also led me to another problem that was quickly fixed.
Thanks to the patches in the latest release of PureBasic I was able to find and fix the problem.
![Image](https://sat02pap001files.storage.live.com/y4mY7cxqlz2uOcIAqO7a8rNHMSPMLSOScJeeAaX0mCAxisZ8nPh8jcTdTxC6fFcBEJOgUHLahIqAKhj0_-qdoNDwImmdx-MZlAMGhwMxEuJy5a6n2WI3mDDiKvaFBqSlTkWadaP0gDZYfVggyc-WRxiTrkfQg-Az71BxjKMWOwbrtFJl4TBg-TDgv8deUVKQZHv?width=660&height=406&cropmode=none)
- improved image editor
- squashed a couple bugs
Squashed Bugs
After updating to PureBasic 6.01 LTS beta 1 (x86/64) the GIF Toolkit wasn't working as expected. Upon closer examination I found an If/Then argument that was missing nested brackets; this same If/Then argument was used in numerous places throughout the code. This also led me to another problem that was quickly fixed.
Thanks to the patches in the latest release of PureBasic I was able to find and fix the problem.
Re: GIF Toolkit
Updated:
- some minor improvements
- squashed a bug
Squashed Bug
After updating to PureBasic 6.01 LTS beta 2 (x86/64) the bottom filmstrip wasn't showing when the application was first opened.
NB*: Free executables (x86/x64) can be downloaded from My PureBasic Stuff; see FREE STUFF.
![Image](https://sat02pap001files.storage.live.com/y4mOEjkyISnlXxUkZ-sqGR_myQ0xQwp8VfhXcRMkOJW7uuQI-uyV_dEpBgcXfsVYQ1n2lCpOb_SGK9Ow2ngQSCySaIx3nMCdR-VKajDUQ9CPEG7v70xPgSnnpox9bWTnR1RWfnwU_-PdiYlz112SDGRbGv2hrijvKSem7iiRpp9T3gbTux5SX_PW6V2d7Xqh9NN?width=660&height=463&cropmode=none)
- some minor improvements
- squashed a bug
Squashed Bug
After updating to PureBasic 6.01 LTS beta 2 (x86/64) the bottom filmstrip wasn't showing when the application was first opened.
NB*: Free executables (x86/x64) can be downloaded from My PureBasic Stuff; see FREE STUFF.
-
- Enthusiast
- Posts: 772
- Joined: Tue May 20, 2008 2:12 am
- Location: Cologne, Germany
- Contact:
Re: GIF Toolkit
Hi JHPJHP,
great work. I donated and am fiddling with the source code, because I need a GIF encoder for a project. I am planning to write my own export-procedures, and wanted to have a small head-start![Smile :-)](./images/smilies/icon_smile.gif)
While working with script/gif_encode.pb, all exported images are black. I am using PB 6.01 on Windows 11 and MacOS. While investigating the exported GIF, it shows only 2 colors. Maybe that helps finding the issue!?
Would be great to have a working example, so I can understand exporting GIFs/animated GIFs better.
Thanks!
great work. I donated and am fiddling with the source code, because I need a GIF encoder for a project. I am planning to write my own export-procedures, and wanted to have a small head-start
![Smile :-)](./images/smilies/icon_smile.gif)
While working with script/gif_encode.pb, all exported images are black. I am using PB 6.01 on Windows 11 and MacOS. While investigating the exported GIF, it shows only 2 colors. Maybe that helps finding the issue!?
Would be great to have a working example, so I can understand exporting GIFs/animated GIFs better.
Thanks!
Regards,
JamiroKwai
JamiroKwai
Re: GIF Toolkit
Hi jamirokwai,
Please see the following post: viewtopic.php?p=521941#p521941
netmaestro not only completed the encoder but also included the NeuQuant algorithm ported by wilbert.
Because of the additional optimizing algorithms a GIF encoder requires to be relevant, my preference is FFmpeg.
The following projects used FFmpeg for the high quality GIF output:
- Deform Image: MLS
- Video Snipping Tool
Good luck.
Please see the following post: viewtopic.php?p=521941#p521941
netmaestro not only completed the encoder but also included the NeuQuant algorithm ported by wilbert.
Because of the additional optimizing algorithms a GIF encoder requires to be relevant, my preference is FFmpeg.
The following projects used FFmpeg for the high quality GIF output:
- Deform Image: MLS
- Video Snipping Tool
Good luck.