dt2iff

OlafS3 · 35056

AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3762
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #75 on: November 21, 2021, 03:02:31 PM
AROS 68k can be tricky at times depending on the compiler. Try compiling at the commandline on Icaros x86 with gcc.

I don't want to compile AROS 68k ! AROS 68k executables (ELF) don't work on Amiga !


AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3762
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #76 on: November 21, 2021, 03:22:21 PM
on AROS One x86 I was able to compile your latest source but the executable is for AROS x86

The screenshot I posted before was on Amiga OS 3.9 BB4 + AfA OS, that is my AfA One Distribution


miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #77 on: November 21, 2021, 04:01:03 PM
on AROS One x86 I was able to compile your latest source but the executable is for AROS x86

The screenshot I posted before was on Amiga OS 3.9 BB4 + AfA OS, that is my AfA One Distribution

Try AmiDevCPP to compile for Amiga OS 3.x

https://eab.abime.net/showthread.php?t=93777

I have this version. It's 161MB to download. I also have a PDF Manual for it. I can send the PDF via PM.

With AmiDevCPP you can also compile for AROS x86. I have used it successfully for my ShowPicture App.




« Last Edit: November 21, 2021, 04:04:12 PM by miker1264 »



miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #78 on: November 21, 2021, 04:08:28 PM
I used DTConv 68k to successfully "Save As" wave files!

If the source & destination groupid's & basenames match simply DoWriteMethod(name, dto, DTWM_RAW);

It saves a complete copy of the original file in a new location. In theory, it should work for all datatypes.  :)



OlafS3

  • Legendary Member
  • *****
    • Posts: 544
    • Karma: +50/-8
Reply #79 on: November 21, 2021, 04:27:58 PM
nice  :)



OlafS3

  • Legendary Member
  • *****
    • Posts: 544
    • Karma: +50/-8
Reply #80 on: November 21, 2021, 04:58:05 PM
I have fully integrated dtconvert in aros vision meaning you can convert any file supported by datatypes to another format supported by datatypes by simply right-clicking

Example here converting PNG

BMP, PCX and PNM works
Degas and Gemimage create software failure
JPG, Gif, IFF and Targa create error "Failed to perform write method"

The result is a file but not working

I can do that with the others too if it helps you somehow Mike



miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #81 on: November 21, 2021, 05:20:05 PM
DTConvert or my app which is DTConv? Just to be able to decide which is which.

If DTConv won't convert correctly it's probably the datatype save functions that aren't working. I'll check it out later today. I had problems with Gemimage and Webp datatypes. Didn't try Degas.

For JPEG, GIF and TGA you must update your datatypes. For IFF you must update your Picture Datatype. Then they should work.

In the latest DTConv it now lists the source groupid & basename. For example the basename for JPG is "jpeg" & TGA is "targa". If you don't use the right basename it will likely fail.
« Last Edit: November 21, 2021, 05:29:17 PM by miker1264 »



OlafS3

  • Legendary Member
  • *****
    • Posts: 544
    • Karma: +50/-8
Reply #82 on: November 21, 2021, 05:29:52 PM
DTConvert or my app which is DTConv? Just to be able to decide which is which.

If DTConv won't convert correctly it's probably the datatype save functions that aren't working. I'll check it out later today. I had problems with Gemimage and Webp datatypes. Didn't try Degas.

For JPEG, GIF and TGA you must update your datatypes. For IFF you must update your Picture Datatype. Then they should work.

In the latest DTConv it now lists the source groupid & basename. For example the basename for JPG is "jpeg" & TGA is "targa". If you don't use the right basename it will likely fail.

sorry I meant your DTConv



OlafS3

  • Legendary Member
  • *****
    • Posts: 544
    • Karma: +50/-8
Reply #83 on: November 21, 2021, 05:36:55 PM
"For JPEG, GIF and TGA you must update your datatypes. For IFF you must update your Picture Datatype."

Could you post the most recent ones for 68k?

I thought I used the newest but perhaps I was wrong



miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #84 on: November 21, 2021, 05:38:00 PM
Try these.



miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #85 on: November 21, 2021, 05:39:43 PM
"For JPEG, GIF and TGA you must update your datatypes. For IFF you must update your Picture Datatype."

Could you post the most recent ones for 68k?

I thought I used the newest but perhaps I was wrong

For Degas, Webp and Gemimage if OM_NEW doesn't return a datatype object it won't work with DTConv. It's the return type.



OlafS3

  • Legendary Member
  • *****
    • Posts: 544
    • Karma: +50/-8
Reply #86 on: November 21, 2021, 05:46:36 PM
I have copied your files

targa works, there was just a small error in parameter of dtconv but jpg still shows error "failed to perform write method"



miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #87 on: November 21, 2021, 06:00:40 PM
Here is the newest DTConv binary file for 68k.

What is the exact syntax you are using for JPEG converstion ?



OlafS3

  • Legendary Member
  • *****
    • Posts: 544
    • Karma: +50/-8
Reply #88 on: November 21, 2021, 06:11:33 PM
still the error

I use DTConv {sourcefile.png} {destination.jpg} picture jpg



AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3762
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #89 on: November 21, 2021, 06:12:36 PM
For JPG conversion in the last parameter you have to add picture jpeg