{"action":"created","issue":{"url":"https://api.github.com/repos/lovell/sharp/issues/347","labels_url":"https://api.github.com/repos/lovell/sharp/issues/347/labels{/name}","comments_url":"https://api.github.com/repos/lovell/sharp/issues/347/comments","events_url":"https://api.github.com/repos/lovell/sharp/issues/347/events","html_url":"https://github.com/lovell/sharp/issues/347","id":130027656,"number":347,"title":"Clarification needed: Magick formats support","user":{"login":"oaleynik","id":609229,"avatar_url":"https://avatars.githubusercontent.com/u/609229?v=3","gravatar_id":"","url":"https://api.github.com/users/oaleynik","html_url":"https://github.com/oaleynik","followers_url":"https://api.github.com/users/oaleynik/followers","following_url":"https://api.github.com/users/oaleynik/following{/other_user}","gists_url":"https://api.github.com/users/oaleynik/gists{/gist_id}","starred_url":"https://api.github.com/users/oaleynik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oaleynik/subscriptions","organizations_url":"https://api.github.com/users/oaleynik/orgs","repos_url":"https://api.github.com/users/oaleynik/repos","events_url":"https://api.github.com/users/oaleynik/events{/privacy}","received_events_url":"https://api.github.com/users/oaleynik/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lovell/sharp/labels/question","name":"question","color":"fef2c0"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-01-30T19:37:54Z","updated_at":"2016-01-31T19:42:23Z","closed_at":"2016-01-30T22:24:46Z","body":"Hey @lovell!\r\n\r\nJust wondering, if `libvips` compiled with the `--with-imagemagick` flag, does it mean that `sharp` should be able to read (at least) all of the file formats listed here http://www.imagemagick.org/script/formats.php?\r\n\r\nI did the simple test. From the list of the magick formats I took `RW`s and using PNG 100x100 image as input I generated set of 80 images.\r\n\r\n```bash\r\necho {AAI,ART,AVS,BMP,BMP2,BMP3,CIN,CLIPBOARD,DCX,DDS,DIB,DPX,EPDF,EPI,EPS,EPSF,EPSI,EPT,EXR,FAX,FITS,FPX,GIF,HDR,HRZ,INLINE,J2C,J2K,JBIG,JNG,JP2,JPEG,JPT,MIFF,MNG,MPC,MPR,MTV,OTB,P7,PALM,PBM,PCD,PCDS,PCX,PDB,PDF,PFM,PGM,PICON,PICT,PNG00,PNG24,PNG32,PNG48,PNG64,PNG8,PNM,PPM,PS,PS2,PS3,PSB,PSD,PTIF,RFG,SGI,SUN,SVG,TGA,TIFF,TXT,VICAR,VIFF,WBMP,WEBP,X,XBM,XPM,XWD} | xargs -n 1 -I {} convert image.png -format {} image.{}\r\n```\r\n\r\nRunning `identify *` gives the following results:\r\n\r\n```\r\nimage.AAI AAI 100x100 100x100+0+0 8-bit sRGB 40KB 0.000u 0:00.000\r\nimage.ART ART 100x100 100x100+0+0 1-bit sRGB 2c 1.41KB 0.000u 0:00.000\r\nimage.AVS AVS 100x100 100x100+0+0 8-bit sRGB 40KB 0.000u 0:00.000\r\nimage.BMP BMP 100x100 100x100+0+0 8-bit sRGB 40.1KB 0.000u 0:00.000\r\nimage.BMP2 BMP2 100x100 100x100+0+0 8-bit sRGB 30KB 0.000u 0:00.000\r\nimage.BMP3 BMP3 100x100 100x100+0+0 8-bit sRGB 30.1KB 0.000u 0:00.000\r\nimage.CIN CIN 100x100 100x100+0+0 8-bit sRGB 32KB 0.000u 0:00.000\r\nimage.CLIPBOARD PNG 100x100 100x100+0+0 8-bit sRGB 6c 431B 0.000u 0:00.000\r\nimage.DCX DCX 100x100 100x100+0+0 8-bit sRGB 6.23KB 0.000u 0:00.000\r\nimage.DDS DDS 100x100 100x100+0+0 8-bit sRGB 10.1KB 0.000u 0:00.000\r\nimage.DIB DIB 100x100 100x100+0+0 8-bit sRGB 40KB 0.000u 0:00.000\r\nimage.DPX DPX 100x100 100x100+0+0 16-bit RGB 48.2KB 0.000u 0:00.000\r\nimage.EPDF PDF 100x100 100x100+0+0 16-bit Bilevel Gray 1.36KB 0.000u 0:00.000\r\nimage.EPI PS 100x100 100x100+0+0 16-bit sRGB 541B 0.000u 0:00.000\r\nimage.EPS PS 100x100 100x100+0+0 16-bit sRGB 541B 0.000u 0:00.000\r\nimage.EPSF PS 100x100 100x100+0+0 16-bit sRGB 541B 0.000u 0:00.000\r\nimage.EPSI PS 100x100 100x100+0+0 16-bit sRGB 541B 0.000u 0:00.000\r\nimage.EPT EPT 100x100 100x100+0+0 16-bit sRGB 541B 0.000u 0:00.000\r\nimage.EXR PNG 100x100 100x100+0+0 8-bit sRGB 6c 431B 0.000u 0:00.000\r\nimage.FAX FAX 2592x3508 2592x3508+0+0 8-bit sRGB 2c 465B 0.000u 0:00.000\r\nimage.FITS[0] FITS 100x100 100x100+0+0 8-bit Grayscale Gray 34.6KB 0.000u 0:00.000\r\nimage.FITS[1] FITS 100x100 100x100+0+0 8-bit Grayscale Gray 34.6KB 0.000u 0:00.000\r\nimage.FITS[2] FITS 100x100 100x100+0+0 8-bit Grayscale Gray 34.6KB 0.000u 0:00.000\r\nimage.FPX PNG 100x100 100x100+0+0 8-bit sRGB 6c 431B 0.000u 0:00.000\r\nimage.GIF GIF 100x100 100x100+0+0 8-bit sRGB 8c 261B 0.000u 0:00.000\r\nimage.HDR HDR 100x100 100x100+0+0 16-bit RGB 1.81KB 0.000u 0:00.000\r\nimage.HRZ HRZ 256x240 256x240+0+0 8-bit sRGB 184KB 0.000u 0:00.000\r\nimage.INLINE PNG 100x100 100x100+0+0 8-bit sRGB 6c 431B 0.000u 0:00.000\r\nimage.J2C PNG 100x100 100x100+0+0 8-bit sRGB 6c 431B 0.000u 0:00.000\r\nimage.J2K PNG 100x100 100x100+0+0 8-bit sRGB 6c 431B 0.000u 0:00.000\r\nimage.JBIG PNG 100x100 100x100+0+0 8-bit sRGB 6c 431B 0.000u 0:00.000\r\nimage.JNG JNG 100x100 100x100+0+0 16-bit sRGB 533B 0.000u 0:00.000\r\nimage.JP2 PNG 100x100 100x100+0+0 8-bit sRGB 6c 431B 0.000u 0:00.000\r\nimage.JPEG JPEG 100x100 100x100+0+0 8-bit sRGB 626B 0.000u 0:00.000\r\nimage.JPT PNG 100x100 100x100+0+0 8-bit sRGB 6c 431B 0.000u 0:00.000\r\nimage.MIFF MIFF 100x100 100x100+0+0 8-bit Palette sRGB 6c 10.9KB 0.000u 0:00.000\r\nimage.MNG MNG 100x100 100x100+0+0 8-bit sRGB 5c 309B 0.000u 0:00.000\r\nimage.MPC MPC 100x100 100x100+0+0 8-bit sRGB 6c 894B 0.000u 0:00.000\r\nimage.MPR PNG 100x100 100x100+0+0 8-bit sRGB 6c 431B 0.000u 0:00.000\r\nimage.MTV MTV 100x100 100x100+0+0 8-bit sRGB 30KB 0.000u 0:00.000\r\nimage.OTB OTB 100x100 100x100+0+0 16-bit sRGB 2c 1.3KB 0.000u 0:00.000\r\nimage.P7 PNG 100x100 100x100+0+0 8-bit sRGB 6c 431B 0.000u 0:00.000\r\nimage.PALM PALM 100x100 100x100+0+0 8-bit sRGB 16c 5.02KB 0.000u 0:00.000\r\nimage.PBM PBM 100x100 100x100+0+0 1-bit Bilevel Gray 1.31KB 0.000u 0:00.000\r\nimage.PCD PCD 768x512 768x512+0+0 8-bit YCC 788KB 0.000u 0:00.000\r\nimage.PCDS PCD 768x512 768x512+0+0 8-bit YCC 788KB 0.000u 0:00.000\r\nimage.PCX PCX 100x100 100x100+0+0 8-bit sRGB 256c 1.44KB 0.000u 0:00.000\r\nimage.PDB PDB 112x100 112x100+0+0 8-bit sRGB 16c 5.8KB 0.000u 0:00.000\r\nimage.PDF PDF 100x100 100x100+0+0 16-bit Bilevel Gray 1.36KB 0.000u 0:00.000\r\nimage.PFM PFM 100x100 100x100+0+0 32-bit TrueColor sRGB 120KB 0.000u 0:00.000\r\nimage.PGM PGM 100x100 100x100+0+0 8-bit Grayscale Gray 10KB 0.000u 0:00.000\r\nimage.PICON XPM 48x48 48x48+0+0 8-bit sRGB 30c 3.04KB 0.000u 0:00.000\r\nimage.PICT PICT 100x100 100x100+0+0 8-bit sRGB 1.18KB 0.000u 0:00.000\r\nimage.PNG00 PNG 100x100 100x100+0+0 8-bit sRGB 6c 431B 0.000u 0:00.000\r\nimage.PNG24 PNG 100x100 100x100+0+0 8-bit sRGB 625B 0.000u 0:00.000\r\nimage.PNG32 PNG 100x100 100x100+0+0 8-bit sRGB 656B 0.000u 0:00.000\r\nimage.PNG48 PNG 100x100 100x100+0+0 16-bit sRGB 709B 0.000u 0:00.000\r\nimage.PNG64 PNG 100x100 100x100+0+0 16-bit sRGB 721B 0.000u 0:00.000\r\nimage.PNG8 PNG 100x100 100x100+0+0 8-bit sRGB 5c 425B 0.000u 0:00.000\r\nimage.PNM PPM 100x100 100x100+0+0 8-bit sRGB 30KB 0.000u 0:00.000\r\nimage.PPM PPM 100x100 100x100+0+0 8-bit sRGB 30KB 0.000u 0:00.000\r\nimage.PS PS 100x100 100x100+0+0 16-bit sRGB 541B 0.000u 0:00.000\r\nimage.PS2 PS 100x100 100x100+0+0 16-bit sRGB 541B 0.000u 0:00.000\r\nimage.PS3 PS 100x100 100x100+0+0 16-bit sRGB 541B 0.000u 0:00.000\r\nimage.PSB PSD 100x100 100x100+0+0 8-bit sRGB 256c 10.8KB 0.000u 0:00.000\r\nimage.PSD PSD 100x100 100x100+0+0 8-bit sRGB 256c 10.8KB 0.000u 0:00.000\r\nimage.PTIF[0] TIFF 100x100 100x100+0+0 8-bit sRGB 16c 960B 0.000u 0:00.000\r\nimage.PTIF[1] TIFF 50x50 50x50+0+0 8-bit sRGB 960B 0.000u 0:00.000\r\nimage.RFG PNG 100x100 100x100+0+0 8-bit sRGB 6c 431B 0.000u 0:00.000\r\nimage.SGI SGI 100x100 100x100+0+0 8-bit sRGB 4.31KB 0.000u 0:00.000\r\nimage.SUN SUN 100x100 100x100+0+0 8-bit sRGB 6c 10.1KB 0.000u 0:00.000\r\nimage.SVG SVG 100x100 100x100+0+0 16-bit sRGB 1.08KB 0.000u 0:00.000\r\nimage.TGA TGA 100x100 100x100+0+0 8-bit sRGB 6c 10KB 0.000u 0:00.000\r\nimage.TIFF TIFF 100x100 100x100+0+0 8-bit sRGB 16c 518B 0.000u 0:00.000\r\nimage.TXT TXT 100x100 100x100+0+0 8-bit sRGB 538KB 0.000u 0:00.000\r\nimage.VICAR VICAR 100x100 100x100+0+0 8-bit sRGB 14.1KB 0.000u 0:00.000\r\nimage.VIFF VIFF 100x100 100x100+0+0 16-bit sRGB 6c 11KB 0.000u 0:00.000\r\nimage.WBMP WBMP 100x100 100x100+0+0 16-bit sRGB 2c 1.3KB 0.000u 0:00.000\r\nDecoded /var/tmp/magick-31780XAkadkWpfoBk. Dimensions: 100 x 100 . Format: lossy. Now saving...\r\nSaved file /var/tmp/magick-317809VEaZ8r2WOuG\r\nimage.WEBP PAM 100x100 100x100+0+0 8-bit TrueColor sRGB 40.1KB 0.000u 0:00.000\r\nimage.X PNG 100x100 100x100+0+0 8-bit sRGB 6c 431B 0.000u 0:00.000\r\nimage.XBM XBM 100x100 100x100+0+0 8-bit sRGB 2c 8.21KB 0.000u 0:00.000\r\nimage.XPM XPM 100x100 100x100+0+0 8-bit sRGB 6c 10.6KB 0.000u 0:00.000\r\nimage.XWD PNG 100x100 100x100+0+0 8-bit sRGB 6c 431B 0.000u 0:00.000\r\nimage.png PNG 100x100 100x100+0+0 8-bit sRGB 6c 431B 0.000u 0:00.000\r\n```\r\n\r\nSo, ImageMagick can easily read metadata of all of the generated images. However, if run `sharp` through the set of the same images and try to get their metadata I have the following picture:\r\n\r\n```\r\nimage.AAI      : null\r\nimage.ART      : null\r\nimage.AVS      : null\r\nimage.BMP      : 100x100\r\nimage.BMP2     : 100x100\r\nimage.BMP3     : 100x100\r\nimage.CIN      : null\r\nimage.CLIPBOARD: 100x100\r\nimage.DCX      : 100x100\r\nimage.DDS      : null\r\nimage.DIB      : 100x100\r\nimage.DPX      : 100x100\r\nimage.EPDF     : 100x100\r\nimage.EPI      : 100x100\r\nimage.EPS      : 100x100\r\nimage.EPSF     : 100x100\r\nimage.EPSI     : 100x100\r\nimage.EPT      : 100x100\r\nimage.EXR      : 100x100\r\nimage.FAX      : null\r\nimage.FITS     : 100x100\r\nimage.FPX      : 100x100\r\nimage.GIF      : 100x100\r\nimage.HDR      : null\r\nimage.HRZ      : null\r\nimage.INLINE   : 100x100\r\nimage.J2C      : 100x100\r\nimage.J2K      : 100x100\r\nimage.JBIG     : 100x100\r\nimage.JNG      : 100x100\r\nimage.JP2      : 100x100\r\nimage.JPEG     : 100x100\r\nimage.JPT      : 100x100\r\nimage.MIFF     : 100x100\r\nimage.MNG      : 100x100\r\nimage.MPC      : null\r\nimage.MPR      : 100x100\r\nimage.MTV      : null\r\nimage.OTB      : null\r\nimage.P7       : 100x100\r\nimage.PALM     : null\r\nimage.PBM      : 100x100\r\nimage.PCD      : 768x512\r\nimage.PCDS     : 768x512\r\nimage.PCX      : 100x100\r\nimage.PDB      : 112x100\r\nimage.PDF      : 100x100\r\nimage.PFM      : null\r\nimage.PGM      : 100x100\r\nimage.PICON    : 48x48\r\nimage.PICT     : 100x100\r\nimage.PNG00    : 100x100\r\nimage.PNG24    : 100x100\r\nimage.PNG32    : 100x100\r\nimage.PNG48    : 100x100\r\nimage.PNG64    : 100x100\r\nimage.PNG8     : 100x100\r\nimage.PNM      : 100x100\r\nimage.PPM      : 100x100\r\nimage.PS       : 100x100\r\nimage.PS2      : 100x100\r\nimage.PS3      : 100x100\r\nimage.PSB      : null\r\nimage.PSD      : 100x100\r\nimage.PTIF     : 100x100\r\nimage.RFG      : 100x100\r\nimage.SGI      : 100x100\r\nimage.SUN      : 100x100\r\nimage.SVG      : null\r\nimage.TGA      : null\r\nimage.TIFF     : 100x100\r\nimage.TXT      : null\r\nimage.VICAR    : 100x100\r\nimage.VIFF     : 100x100\r\nimage.WBMP     : null\r\nimage.WEBP     : null\r\nimage.X        : 100x100\r\nimage.XBM      : 100x100\r\nimage.XPM      : 100x100\r\nimage.XWD      : 100x100\r\n```\r\n\r\nAm I missing something and `libvips` requires some extra flags to be compiled with?"},"comment":{"url":"https://api.github.com/repos/lovell/sharp/issues/comments/177595776","html_url":"https://github.com/lovell/sharp/issues/347#issuecomment-177595776","issue_url":"https://api.github.com/repos/lovell/sharp/issues/347","id":177595776,"user":{"login":"lovell","id":210965,"avatar_url":"https://avatars.githubusercontent.com/u/210965?v=3","gravatar_id":"","url":"https://api.github.com/users/lovell","html_url":"https://github.com/lovell","followers_url":"https://api.github.com/users/lovell/followers","following_url":"https://api.github.com/users/lovell/following{/other_user}","gists_url":"https://api.github.com/users/lovell/gists{/gist_id}","starred_url":"https://api.github.com/users/lovell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lovell/subscriptions","organizations_url":"https://api.github.com/users/lovell/orgs","repos_url":"https://api.github.com/users/lovell/repos","events_url":"https://api.github.com/users/lovell/events{/privacy}","received_events_url":"https://api.github.com/users/lovell/received_events","type":"User","site_admin":false},"created_at":"2016-01-31T19:42:23Z","updated_at":"2016-01-31T19:42:23Z","body":"Commit 906fb67 on the `mind` branch (v0.13.0) adds support for a few extra formats on your megalist when using libvips compiled with PPM and FITS."}}