dt2iff

OlafS3 · 1453

AMIGASYSTEM

  • Legendary Member
  • *****
    • Posts: 1057
    • Karma: +34/-1
  • AROS One
    • AROS One
Reply #30 on: November 17, 2021, 05:44:57 PM

AROS One x86 ?

Which datatype did you try to convert ?

Yes I used AROS One x86, I attach a video that shows how I made the conversion JPG/ PNG and Wav/8svx through Dopus4, Naturally "empty" files

https://drive.google.com/file/d/1VPMfiVBPmqKbJ5cjS9hxfX4pb_Nn5Ltt/view?usp=sharing


miker1264

  • Legendary Member
  • *****
    • Posts: 991
    • Karma: +36/-2
Reply #31 on: November 17, 2021, 05:56:41 PM
AMIGASYSTEM

Send me the jpeg and the dtconv x86 binary in a PM. I will test it. Or if it's small enough just post a zip file here.

I successfully converted two jpeg to png using DTConv in AROS One x86. I used a shell for the conversion.

Sound is not yet implemented. So the file will be empty.

Syntax:
dtconv pic.jpg pic2.png picture png
« Last Edit: November 17, 2021, 06:31:43 PM by miker1264 »



AMIGASYSTEM

  • Legendary Member
  • *****
    • Posts: 1057
    • Karma: +34/-1
  • AROS One
    • AROS One
Reply #32 on: November 17, 2021, 06:44:14 PM
Syntax:
dtconv pic.jpg pic2.png picture png

Ok thanks, tried it from the Shell and it works fine for JPG/PNG conversion, I need to find a way that works from Dopus4 too.

Question, what is the syntax to convert to 8bit ?


miker1264

  • Legendary Member
  • *****
    • Posts: 991
    • Karma: +36/-2
Reply #33 on: November 17, 2021, 06:58:39 PM
Syntax:
dtconv pic.jpg pic2.png picture png

Ok thanks, tried it from the Shell and it works fine for JPG/PNG conversion, I need to find a way that works from Dopus4 too.

Question, what is the syntax to convert to 8bit ?

In order to convert to 8bit the input file must also be 8bit. Same with convert to JPEG. The input file must be 24bit for the conversion to work. DTConv doesn't convert the bitdepth.

For example to convert 8bit to GIF. Syntax is the same.

dtconv pic_8bpp.bmp pic2.gif picture gif

I hope to write the code to allow converting sound, animation, and perhaps text datatypes as well in the near future. I will have to study each datatype class to understand how to write it.

When it is advanced enough such as being able to convert pictures and sound at minimum then I will put together a small gui and incorporate the code into MultiView for conversions. DTConvert which is part of Export in MultiView is problematic.

It doesn't work for the current versions of IcarosDesktop x86 nor does it work for IcarosDesktop x86_64. We need for it to work. And we can't simply wait for ABIv0 code to catch up with ABIv1.

« Last Edit: November 17, 2021, 07:32:53 PM by miker1264 »



AMIGASYSTEM

  • Legendary Member
  • *****
    • Posts: 1057
    • Karma: +34/-1
  • AROS One
    • AROS One
Reply #34 on: November 17, 2021, 10:09:54 PM
Ok found the solution also on Dopus4, now you can convert directly or choose a new name for the converted file, see attached video.

https://drive.google.com/file/d/1L8S-FhUTdMCEnh3RDolRguH60qKNisyO/view


I had problems with Dopus4 because of the lowercase/uppercase of your parameter "picture", I was writing "Picture" i had no idea that the lowercase was important.


miker1264

  • Legendary Member
  • *****
    • Posts: 991
    • Karma: +36/-2
Reply #35 on: November 17, 2021, 10:45:09 PM
Ok found the solution also on Dopus4, now you can convert directly or choose a new name for the converted file, see attached video.

https://drive.google.com/file/d/1L8S-FhUTdMCEnh3RDolRguH60qKNisyO/view


I had problems with Dopus4 because of the lowercase/uppercase of your parameter "picture", I was writing "Picture" i had no idea that the lowercase was important.

Yes. The Type and Format Parameters must be lowecase. That may change in a future update to make it more user friendly. It will be even better when it can convert sound files to datatypes.

I suppose now you need updated picture datatypes? I compiled binaries so far for 68k and x86_64. I have to wait till later today for x86 binaries. I still use PictureDatatypeCreationTool for that.

That's great what you did with Dopus4. Could you post your Dopus4 config for your buttons? I'd like to try using it. Maybe a short explanation about how to make a new button? I'm a Dopus4 noobie!  ;) Will it be in AROS One v1.7 also ?
« Last Edit: November 17, 2021, 11:00:59 PM by miker1264 »



AMIGASYSTEM

  • Legendary Member
  • *****
    • Posts: 1057
    • Karma: +34/-1
  • AROS One
    • AROS One
Reply #36 on: November 17, 2021, 11:54:24 PM
I have never read a manual of Dopus4, I go by instinct, then as always happens by mistake you get the right parameter :)
Study the keys and you'll see that it will be easy to understand, where you do not arrive ask, however, there should be a manual somewhere.

Yes I attach here the config of Dopus, but I have to complete it when the TIFF datatypes will arrive, at the moment it seems to work well converting to JPG, PNG and IFF formats, other formats tested do not seem to work such as GIF, TGA and PCX.

The configured keys for DTConv are located on the second bank, you have to click on "Nex Bank" to access or back out.

There is only one key configured (Blue) with "add name to image" converted.

« Last Edit: November 17, 2021, 11:58:47 PM by AMIGASYSTEM »



miker1264

  • Legendary Member
  • *****
    • Posts: 991
    • Karma: +36/-2
Reply #37 on: November 18, 2021, 01:05:10 AM
AMIGASYSTEM

Thanks for testing. I haven't been able to find time to work on Tiff Datatype. I'm just putting finishing touches on the Targa Datatype. The Write_RLE function wasn't working correctly.

But Tiff will be next after that.  :)

Try this 8bit image to convert to GIF. Use the shell to test it. Converting 8bit images to GIF works for me. Remember to use lowercase.

« Last Edit: November 18, 2021, 02:26:34 AM by miker1264 »



AMIGASYSTEM

  • Legendary Member
  • *****
    • Posts: 1057
    • Karma: +34/-1
  • AROS One
    • AROS One
Reply #38 on: November 18, 2021, 09:17:28 AM
Ok the GIF conversion worked from Dopus4.

This morning with a clear head I realized that in Dopus4 you don't need to create specific buttons, to convert any image to another format you need only one, for example:

I had created PNG/IFF, JPG/IFF etc... instead just one of them can convert any format to IFF, this is because the first parameter is automatically recognized by the command set on Dopus4.


That said now the keys are much less and multifunctional, example:

IMAGE/IFF, IMAGE/PNG, IMAGE/IFF, IMAGE/GIG, see screenshot :)





miker1264

  • Legendary Member
  • *****
    • Posts: 991
    • Karma: +36/-2
Reply #39 on: November 18, 2021, 09:48:28 AM
Very good. You could shorten the names...PIC/PNG...



AMIGASYSTEM

  • Legendary Member
  • *****
    • Posts: 1057
    • Karma: +34/-1
  • AROS One
    • AROS One
Reply #40 on: November 18, 2021, 10:55:15 AM
Yes it is better for the extensions that occupy more space see 8SVX, I thought also of "Pic To Iff" or "Pic 2 Iff", but the capital letter has a greater visibility, in these important buttons because similar, also because Dopus4 in that video resolution doesn't offer many button colors, it does with other video resolutions but then you don't get the window on Wanderer.

Hope you don't mind, I made a News about your latest developments on other forums !
« Last Edit: November 18, 2021, 11:00:50 AM by AMIGASYSTEM »



miker1264

  • Legendary Member
  • *****
    • Posts: 991
    • Karma: +36/-2
Reply #41 on: November 18, 2021, 03:37:48 PM
Yes it is better for the extensions that occupy more space see 8SVX, I thought also of "Pic To Iff" or "Pic 2 Iff", but the capital letter has a greater visibility, in these important buttons because similar, also because Dopus4 in that video resolution doesn't offer many button colors, it does with other video resolutions but then you don't get the window on Wanderer.

Hope you don't mind, I made a News about your latest developments on other forums !

Welll...I hope it is good news not promising too much.  ;)

Each day is a blessing. Tomorrow is never promised.



AMIGASYSTEM

  • Legendary Member
  • *****
    • Posts: 1057
    • Karma: +34/-1
  • AROS One
    • AROS One
Reply #42 on: November 18, 2021, 04:55:10 PM
True, in life I always avoid making long term promises, I only mentioned the progress made and possible future developments as you reported :)

amiganews.it
https://www.amiganews.it/forum/viewtopic.php?f=39&t=21020&p=261039#p261039

eab.abime.net
http://eab.abime.net/showthread.php?t=108451
« Last Edit: November 18, 2021, 06:45:11 PM by AMIGASYSTEM »



miker1264

  • Legendary Member
  • *****
    • Posts: 991
    • Karma: +36/-2
Reply #43 on: November 18, 2021, 05:55:53 PM
True, in life I always avoid making long term promises, I only mentioned the progress made and possible future developments as you reported :)

Amiganews.it
https://www.amiganews.it/forum/viewtopic.php?f=39&t=21020&p=261039#p261039

EAB (to be done)

Very good. I read the original post in Italian. No translation. :)



AMIGASYSTEM

  • Legendary Member
  • *****
    • Posts: 1057
    • Karma: +34/-1
  • AROS One
    • AROS One
Reply #44 on: November 18, 2021, 06:31:37 PM
Added the link on EAB

I love fairness and respect towards others, I have been 40 years a Fire Department Chief!