dt2iff

OlafS3 · 35057

OlafS3

  • Legendary Member
  • *****
    • Posts: 544
    • Karma: +50/-8
Reply #60 on: November 21, 2021, 03:40:56 AM
DTConv converts any graphic format to another format, but even in the same format of course an 8bit image will always be converted to 8bit, in practice you can not save an image from 32Bit to 8Bit, maybe this will be a next option :)

thanks  ;)

Yes that would be nice. For example convert 24bit to 8bit or grayscale



AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3762
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #61 on: November 21, 2021, 04:33:28 AM

Yes that would be nice. For example convert 24bit to 8bit or grayscale

However on AROS x86 there are Applications like ZunePaint and ZuneView that do it!


OlafS3

  • Legendary Member
  • *****
    • Posts: 544
    • Karma: +50/-8
Reply #62 on: November 21, 2021, 05:33:36 AM
but in my distro you can do that by right-click on the image file



AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3762
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #63 on: November 21, 2021, 11:48:53 AM
Yes you have configured "IFF24To8" on Dopus5 Magellan, I have this tool and others of the package "24BitTools" on Dopus4 on my AfA One, there are also the sources, maybe I try to compile them for AROS x86 and if I can also for AROS 68k, maybe with the help of Mike !


miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #64 on: November 21, 2021, 11:57:08 AM
Yes you have configured "IFF24To8" on Dopus5 Magellan, I have this tool and others of the package "24BitTools" on Dopus4 on my AfA One, there are also the sources, maybe I try to compile them for AROS x86 and if I can also for AROS 68k, maybe with the help of Mike !

Sources for IFF24to8 ? I've also been working on Color Quantizing which converts 24bit images to 8bit images.

Often in Amigaland apps use a process called "color reduction" which is a crude form of quantizing. The quality is much less.



miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #65 on: November 21, 2021, 12:06:47 PM
For DTConv I will add some functions such as DetectGroupID_by_Datatype and DetectBasename_by_Datatype.

For the convert process it must compare groupid's and basenames for the source dto and dest ndto. The groupid's must match but basenames can be the same or different.

If basenames and groupid's are the same then DTConv should do as MultiView does by saving a complete copy of the original to a new location. There's no need for conversions in that case.

Such as:
dtconv Sound01.wav Sound02.wav sound wave

It should result in saving a complete copy not a conversion of it.
« Last Edit: November 21, 2021, 12:14:41 PM by miker1264 »



AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3762
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #66 on: November 21, 2021, 12:27:06 PM
Sources for IFF24to8 ?

The sources of "IFF24to8" are found in the package "24BitTools", inside there are also those of "Pro2IFF" and "Pro2BMP", I tried to compile them but there are many errors and not knowing the C language I do not know where to put my hands :(

https://aminet.net/package/gfx/conv/24BitTools


miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #67 on: November 21, 2021, 12:36:49 PM
Sources for IFF24to8 ?

The sources of "IFF24to8" are found in the package "24BitTools", inside there are also those of "Pro2IFF" and "Pro2BMP", I tried to compile them but there are many errors and not knowing the C language I do not know where to put my hands :(

https://aminet.net/package/gfx/conv/24BitTools

Thanks. I will look at the sources and try to compile it.

Also there is a small commandline app called "djpeg" included with JPEG Library. It can convert 24bit JPEG images to 8bit GIF.

Then you can use DTConv to convert the GIF to other formats.



AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3762
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #68 on: November 21, 2021, 01:24:08 PM
Mike about the compilation on Amiga of DTConv did you manage to understand how to proceed !


miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #69 on: November 21, 2021, 01:31:29 PM
Mike about the compilation on Amiga of DTConv did you manage to understand how to proceed !

Here is the current source. Give it a try.  ;)



miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #70 on: November 21, 2021, 01:32:48 PM
Easy Breezy!  8)

Added the two new datatype functions. See the output text.

Now that we can compare groupid's and basenames it's a simple matter to Save As.

If srce & dest groupid's match and srce & dest basenames match simply make a complete copy to a new location.

DoWriteMethod(name, dto, DTWM_RAW); //Save AS = Write the current datatype object to a new file.
« Last Edit: November 21, 2021, 01:55:19 PM by miker1264 »



AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3762
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #71 on: November 21, 2021, 02:27:15 PM
Mike about the compilation on Amiga of DTConv did you manage to understand how to proceed !

Here is the current source. Give it a try.  ;)

They come out so many mistakes, the more you correct the more they come out ;D everyone has to do their job, without the basics you go nowhere, now I stop here with the development :(


miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #72 on: November 21, 2021, 02:48:00 PM
Mike about the compilation on Amiga of DTConv did you manage to understand how to proceed !

Here is the current source. Give it a try.  ;)

They come out so many mistakes, the more you correct the more they come out ;D everyone has to do their job, without the basics you go nowhere, now I stop here with the development :(

Are you trying to compile on x86 or 68k ?



AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3762
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #73 on: November 21, 2021, 02:55:14 PM
Amiga 68k, after the corrections I got the error shown in the screenshot I attached, I attach it again:



miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #74 on: November 21, 2021, 02:59:04 PM
Amiga 68k, after the corrections I got the error shown in the screenshot I attached, I attach it again:



AROS 68k can be tricky at times depending on the compiler. Try compiling at the commandline on Icaros x86 with gcc.