LUNAPAINT

miker1264 · 1495

salvo

  • Legendary Member
  • *****
    • Posts: 964
    • Karma: +13/-4
  • Invalid Civil
Reply #45 on: April 23, 2021, 11:43:30 PM
yes right :)

TinyAros Laptop Fujitsu Amilo Pro V8210 Intel Celeron 1.6 Ghz, 3 Gb Ram, SSD Samsung 860 EVO 250 Gb, Intel GMA Gallium Ready

http://tinyaros.flazio.com/home


miker1264

  • Legendary Member
  • *****
    • Posts: 672
    • Karma: +26/-2
Reply #46 on: April 26, 2021, 07:45:04 PM
Update:

After about a week of intensive investigation through research and testing I've decided that color reduction/color quantizing will have to be put on hold for the moment. There are problems with stack size and memory management that may not be an issue on other computer platforms. Maybe it's why I've found scant information of such algorithms on Amiga-like systems.

 It becomes difficult to implement such algorithms for AROS or other Amiga-like systems without introducing workarounds such as linked lists or functions that are less memory intensive.

So I will focus on releasing the updated program with the changes made thus far in the interests of best use of my time. But I will continue to investigate color reduction/quantization.

It seems that color quantizing is already part of our AROS distribution but we haven't been using it. For further research jquant1.c & jquant2.c are both files that are part of jpeg library. There are two utilities included with the library called cjpeg & djpeg. The first is "compress jpeg" which makes jpeg files from input file formats. The second is "decompress jpeg" which opens a jpeg file then exports to several file formats. In this case it may be possible to use jpeg library for color quantizing.
« Last Edit: April 27, 2021, 01:42:02 AM by miker1264 »



miker1264

  • Legendary Member
  • *****
    • Posts: 672
    • Karma: +26/-2
Reply #47 on: April 26, 2021, 08:12:24 PM
So here are the changes/updates/bugfixes for Lunapaint so far.

We can now choose to save using additional datatypes than just the original JPEG or PNG.

Also we can now select desired bitdepth at save time such as 8bit, 24bit or 32bit. Currently we can only save 8bit images if the original image is also 8bit. But we can save as 24bit or 32bit when the output format permits it no matter what the original bitdepth is.

For example, we can open an 8bit, 24bit or 32bit PNG and save as 24bit or 32bit. But we can't save as 8bit PNG unless we open an 8bit PNG first. Howerer, we can't save a 32bit JPEG or 24bit GIF because of constraints of the individual datatype image. But, interestingly, we can open an 8bit BMP or PNG and save as 24bit JPEG or 32bit PNG. Maybe these conversions will be useful. I will likely use these features on a regular basis.  :)

There was a problem displaying the filename as the window title. With assistance from Mazze I was able to successfully use StrDup to fix the window title error. The problem was first noticed on x86-64. Not sure if it was an issue on x86 though.

There was a window resize issue related to MUI/Zune that was also addressed. When opening a larger image (800x600) for example, then resizing using the window size gadget then closing caused a problem because Zune remembered the size. When opening a smaller image the window itself was still large. That problem was fixed by forcing the window size to match image size when opening.

These are just a few updates and/or fixes. But maybe they help to improve the user experience with the program.

Special thanks to the original author, monsOOn and for the contributors and maintainers of Lunapaint over the years. It is a very nicely designed program with many useful features.
« Last Edit: April 28, 2021, 05:48:50 PM by miker1264 »



salvo

  • Legendary Member
  • *****
    • Posts: 964
    • Karma: +13/-4
  • Invalid Civil
Reply #48 on: April 26, 2021, 10:41:36 PM
Thank's Miker :)

TinyAros Laptop Fujitsu Amilo Pro V8210 Intel Celeron 1.6 Ghz, 3 Gb Ram, SSD Samsung 860 EVO 250 Gb, Intel GMA Gallium Ready

http://tinyaros.flazio.com/home


mmartinka

  • Newbie
  • *
    • Posts: 48
    • Karma: +4/-0
Reply #49 on: April 28, 2021, 09:20:50 AM
Thanks Miker1264
where I find the new version Lunapaint?



miker1264

  • Legendary Member
  • *****
    • Posts: 672
    • Karma: +26/-2
Reply #50 on: April 28, 2021, 04:30:23 PM
Thanks Miker1264
where I find the new version Lunapaint?

@mmartinka

By this Friday, after some code cleanup for new functions, I'll post the binaries and sources on AROS Archives and/or Aminet.

Then I'll post a link here to benefit the most people.

The current version and revision number is 0.6.0 that you can find in the about box. The major version is 0.6 and the previous version was 0.5



miker1264

  • Legendary Member
  • *****
    • Posts: 672
    • Karma: +26/-2
Reply #51 on: May 28, 2021, 07:54:52 PM
As for Lunapaint,

Now that I'm working with 16bit pixel conversion I should add a new Bitdepth to the cycle gadget for Export Project to include 16bit for images that support it.

While I'm there I'll clean up the new code a bit and prepare it to post the newer version somewhere so that others can check out the new features. I've been neglecting to work on it lately. I've been distracted by other interesting projects.

I will likely add a few more datatypes to Export Project including Targa and maybe PCX. To export Tiff images you will need my TIFF datatype that currently uses LibTiff. I have compiled LibTiff for x86-64 but I'm not sure it's available for AROS x86.



AMIGASYSTEM

  • Legendary Member
  • *****
    • Posts: 526
    • Karma: +26/-1
Reply #52 on: May 28, 2021, 10:45:07 PM
Thank you mike, you also commit a lot of your time to others, you are doing a great job, hopefully other developers will also come back to help make AROS grow.


deadwood

  • AROS Developer
  • Senior Member
  • *****
    • Posts: 332
    • Karma: +23/-0
Reply #53 on: May 29, 2021, 06:38:04 AM
@miker1264

Glad to see progress and that you are having fun with graphics. :)



serk118uk

  • Newbie
  • *
    • Posts: 45
    • Karma: +6/-0
Reply #54 on: May 29, 2021, 01:30:38 PM
Great progress mike, i done bit of work back than before i lost my aros partition.

i have added frame base and added avi exporting and you could add wav/mp3 to avi  with plan to make it as video editing tool..

http://serk118.blogspot.com/2014/01/lunapaint-gets-lunavi.html

Lets Build Not Destroy...


salvo

  • Legendary Member
  • *****
    • Posts: 964
    • Karma: +13/-4
  • Invalid Civil
Reply #55 on: May 29, 2021, 02:36:14 PM
excellence serk :)

TinyAros Laptop Fujitsu Amilo Pro V8210 Intel Celeron 1.6 Ghz, 3 Gb Ram, SSD Samsung 860 EVO 250 Gb, Intel GMA Gallium Ready

http://tinyaros.flazio.com/home