{"action":"created","issue":{"url":"https://api.github.com/repos/jcupitt/libvips/issues/328","labels_url":"https://api.github.com/repos/jcupitt/libvips/issues/328/labels{/name}","comments_url":"https://api.github.com/repos/jcupitt/libvips/issues/328/comments","events_url":"https://api.github.com/repos/jcupitt/libvips/issues/328/events","html_url":"https://github.com/jcupitt/libvips/issues/328","id":107363546,"number":328,"title":"How to convert '.jp2' or '.tif' images to '.svs' images using VIPS or other possible softwares ?","user":{"login":"taohuang123","id":14365718,"avatar_url":"https://avatars.githubusercontent.com/u/14365718?v=3","gravatar_id":"","url":"https://api.github.com/users/taohuang123","html_url":"https://github.com/taohuang123","followers_url":"https://api.github.com/users/taohuang123/followers","following_url":"https://api.github.com/users/taohuang123/following{/other_user}","gists_url":"https://api.github.com/users/taohuang123/gists{/gist_id}","starred_url":"https://api.github.com/users/taohuang123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taohuang123/subscriptions","organizations_url":"https://api.github.com/users/taohuang123/orgs","repos_url":"https://api.github.com/users/taohuang123/repos","events_url":"https://api.github.com/users/taohuang123/events{/privacy}","received_events_url":"https://api.github.com/users/taohuang123/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jcupitt/libvips/labels/question","name":"question","color":"02e10c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-20T00:03:20Z","updated_at":"2015-09-20T16:24:11Z","closed_at":null,"body":"I have 'jp2' and '.tif' images, and want to generate corresponding '.svs' images. \r\nI know we can open 'jp2' and '.tif' images in ScanScope, and extract parts of the images as '.svs' images. However, I want to transform the entirely images as '.svs' and make it possible for a lot of images, meaning that it should be automatic.\r\nWhat can I do?\r\nThanks."},"comment":{"url":"https://api.github.com/repos/jcupitt/libvips/issues/comments/141805996","html_url":"https://github.com/jcupitt/libvips/issues/328#issuecomment-141805996","issue_url":"https://api.github.com/repos/jcupitt/libvips/issues/328","id":141805996,"user":{"login":"taohuang123","id":14365718,"avatar_url":"https://avatars.githubusercontent.com/u/14365718?v=3","gravatar_id":"","url":"https://api.github.com/users/taohuang123","html_url":"https://github.com/taohuang123","followers_url":"https://api.github.com/users/taohuang123/followers","following_url":"https://api.github.com/users/taohuang123/following{/other_user}","gists_url":"https://api.github.com/users/taohuang123/gists{/gist_id}","starred_url":"https://api.github.com/users/taohuang123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taohuang123/subscriptions","organizations_url":"https://api.github.com/users/taohuang123/orgs","repos_url":"https://api.github.com/users/taohuang123/repos","events_url":"https://api.github.com/users/taohuang123/events{/privacy}","received_events_url":"https://api.github.com/users/taohuang123/received_events","type":"User","site_admin":false},"created_at":"2015-09-20T16:24:11Z","updated_at":"2015-09-20T16:24:11Z","body":"Another question, when I convert 'svs' file to 'tif' using VIPS, is it possible to specify the compression ratio using JPEG2000?\r\nI know we can use the command: vips extract_band 1.svs 1.tif[pyramid,tile,compression=jpeg] 0 --n 3\r\nto convert 'svs' to 'tif' using JPEG compression. However, I want to use JPEG 2000 compression, and specify the compression ratio.\r\nIt seems that in VIPS, the compression option for 'tif' includes:\r\n\"none\" - no compression\r\n\"jpeg\" - JPEG compression\r\n\"deflate\" - ZIP (deflate) compression\r\n\"packbits\" - TIFF packbits compression\r\n\"ccittfax4\" - CCITT Group 4 fax encoding\r\n\"lzw\" - Lempel-Ziv compression' \r\nSo how to convert 'svs' into 'tif' using JPEG2000 compression, and specify the compression ratio? I need to test something under different compression ratios.\r\nThanks."}}