132-magic-update-bio-rad.patch 1.2 KB

12345678910111213141516171819202122232425262728
  1. Author: Adam Buchbinder <adam.buchbinder@gmail.com>
  2. Description: Fix false positives in Bio-Rad PIC detection (Closes: #589056).
  3. diff -Naurp file.orig/magic/Magdir/images file/magic/Magdir/images
  4. --- file.orig/magic/Magdir/images 2010-07-14 10:21:47.000000000 -0400
  5. +++ file/magic/Magdir/images 2010-07-14 10:29:50.000000000 -0400
  6. @@ -551,11 +551,16 @@
  7. # Bio-Rad .PIC is an image format used by microscope control systems
  8. # and related image processing software used by biologists.
  9. # From: Vebjorn Ljosa <vebjorn@ljosa.com>
  10. -54 leshort 12345 Bio-Rad .PIC Image File
  11. ->0 leshort >0 %hd x
  12. ->2 leshort >0 %hd,
  13. ->4 leshort =1 1 image in file
  14. ->4 leshort >1 %hd images in file
  15. +# BOOL values are two-byte integers; use them to rule out false positives.
  16. +# http://web.archive.org/web/20050317223257/www.cs.ubc.ca/spider/ladic/text/biorad.txt
  17. +# Samples: http://www.loci.wisc.edu/software/sample-data
  18. +14 leshort <2
  19. +>62 leshort <2
  20. +>>54 leshort 12345 Bio-Rad .PIC Image File
  21. +>>>0 leshort >0 %hd x
  22. +>>>2 leshort >0 %hd,
  23. +>>>4 leshort =1 1 image in file
  24. +>>>4 leshort >1 %hd images in file
  25. # From Jan "Yenya" Kasprzak <kas@fi.muni.cz>
  26. # The description of *.mrw format can be found at