LUNAPAINT

miker1264 · 9804

Amiwell

  • Legendary Member
  • *****
    • Posts: 2616
    • Karma: +35/-4
  • Peace
Reply #45 on: April 23, 2021, 04:43:30 PM
yes right :)



miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #46 on: April 26, 2021, 12: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 26, 2021, 06:42:02 PM by miker1264 »



miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #47 on: April 26, 2021, 01: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, 10:48:50 AM by miker1264 »



Amiwell

  • Legendary Member
  • *****
    • Posts: 2616
    • Karma: +35/-4
  • Peace
Reply #48 on: April 26, 2021, 03:41:36 PM
Thank's Miker :)



mmartinka

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



miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #50 on: April 28, 2021, 09:30:23 AM
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: 1827
    • Karma: +84/-6
Reply #51 on: May 28, 2021, 12: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

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3741
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #52 on: May 28, 2021, 03: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
  • Legendary Member
  • *****
    • Posts: 1524
    • Karma: +118/-0
Reply #53 on: May 28, 2021, 11:38:04 PM
@miker1264

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



serk118uk

  • Member
  • ***
    • Posts: 187
    • Karma: +67/-0
Reply #54 on: May 29, 2021, 06:30:38 AM
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...


Amiwell

  • Legendary Member
  • *****
    • Posts: 2616
    • Karma: +35/-4
  • Peace
Reply #55 on: May 29, 2021, 07:36:14 AM
excellence serk :)



Amiwell

  • Legendary Member
  • *****
    • Posts: 2616
    • Karma: +35/-4
  • Peace
Reply #56 on: July 03, 2021, 06:10:35 PM
miker you forgot to upload the program apologize if I stretch a little :D



miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #57 on: July 03, 2021, 07:46:34 PM
miker you forgot to upload the program apologize if I stretch a little :D

Thanks for the reminder. I'll post an update on Aminet & AROS Archives in the next few days. After that I'll have some datatype updates as well.  :)



Amiwell

  • Legendary Member
  • *****
    • Posts: 2616
    • Karma: +35/-4
  • Peace
Reply #58 on: July 04, 2021, 05:10:29 AM
thank you miker :)



Amiwell

  • Legendary Member
  • *****
    • Posts: 2616
    • Karma: +35/-4
  • Peace
Reply #59 on: August 02, 2021, 01:05:15 PM
Miker I wanted to ask you about the program so we load it on Archives, thanks :)