1663939282.FILE5_43-31-g409d43bb.adjust-degas-to-co-exist-with-adobe-photoshop-color-joerg-jenderek.patch 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. Subject: Adjust degas to co-exist with Adobe Photoshop Color (Joerg Jenderek)
  2. Origin: FILE5_43-31-g409d43bb <https://github.com/file/file/commit/FILE5_43-31-g409d43bb>
  3. Upstream-Author: Christos Zoulas <christos@zoulas.com>
  4. Date: Fri Sep 23 13:21:22 2022 +0000
  5. --- a/magic/Magdir/images
  6. +++ b/magic/Magdir/images
  7. @@ -1459,22 +1459,22 @@
  8. # skip g3test.g3 by test for unused bits of 2nd color entry
  9. >>4 ubeshort&0xF000 0
  10. #>>>0 beshort x 1ST_VALUE=%x
  11. ->>>-0 offset x FILE_SIZE=%lld
  12. +#>>>-0 offset x FILE_SIZE=%lld
  13. # standard DEGAS low-res uncompressed bitmap *.pi1 with file size 32034
  14. ->>>-0 offset =32034 VARIANT_STANDARD
  15. +>>>-0 offset =32034
  16. #>>>>0 beshort x 1st_VALUE=%x
  17. # like: 8ball.pi1 teddy.pi1 sonic01.pi1
  18. >>>>0 use degas-bitmap
  19. # about 61 DEGAS Elite low-res uncompressed bitmap *.pi1 with file size 32066
  20. ->>>-0 offset =32066 VARIANT_ELITE
  21. +>>>-0 offset =32066
  22. # like: spider.pi1 pinkgirl.pi1 frog3.pi1
  23. >>>>0 use degas-bitmap
  24. # about 55 DEGAS Elite low-res uncompressed bitmap *.pi1 with file size 32128
  25. ->>>-0 offset =32128 VARIANT_3
  26. +>>>-0 offset =32128
  27. # like: mountain.pi1 bigspid.pi1 alf33.pi1
  28. >>>>0 use degas-bitmap
  29. # 1 DEGAS Elite low-res uncompressed bitmap *.pi1 with file size 44834
  30. ->>>-0 offset =44834 VARIANT_4
  31. +>>>-0 offset =44834
  32. # like: kenshin.pi1
  33. >>>>0 use degas-bitmap
  34. # DEGAS mid-res uncompressed bitmap *.pi2 (strength=50) after GEM Images like:
  35. @@ -1515,8 +1515,12 @@
  36. # 00000000 "LEREDACT.PI3" 03730773 "TBX_DEMO.PI3"
  37. #>>>>&8 ubelong x \b, LAST CHAR+NIL %8.8x
  38. >>>>&8 ubelong&0xff00ffFF !0
  39. +# skip many Adobe Photoshop Color swatch (ANPA-Farben.aco TOYO-Farbsystem.aco) with invalid 3rd color entry (1319 2201 2206 21f5 2480 24db 25fd)
  40. +>>>>>6 ubeshort&0xF000 0
  41. +# skip few Adobe Photoshop Color swatch (FOCOLTONE-Farben.aco "PANTONE process coated.aco") with invalid 4th color entry (ffff)
  42. +>>>>>>8 ubeshort&0xF000 0
  43. # many DEGAS bitmap like: ARABDEMO.PI3 ELMRSESN.PI3 GEMVIEW.PI3 LEREDACT.PI3 PICCOLO.PI3 REPRO_JR.PI3 ST_TOOLS.PI3 TBX_DEMO.PI3 evgem7.pi3
  44. ->>>>>0 use degas-bitmap
  45. +>>>>>>>0 use degas-bitmap
  46. # test for last character of Adobe PhotoShop Brush UTF16-LE string and terminating nul char
  47. >>>>&8 ubelong&0xff00ffFF =0
  48. # select last DEGAS bitmaps by invalid last char of brush note like BASICNES.PI3 DB_HELP.PI3 DB_WRITR.PI3 LEREDACT.PI3