{"id":197,"date":"2009-03-15T10:52:22","date_gmt":"2009-03-15T10:52:22","guid":{"rendered":"http:\/\/ahay.org\/blog\/?p=197"},"modified":"2015-08-04T23:51:39","modified_gmt":"2015-08-04T23:51:39","slug":"how-do-i-convert-an-image-file-to-an-rsf-file","status":"publish","type":"post","link":"https:\/\/ahay.org\/blog\/2009\/03\/15\/how-do-i-convert-an-image-file-to-an-rsf-file\/","title":{"rendered":"How do I convert an image file to an RSF file?"},"content":{"rendered":"<p>One option is <strong>sfjpg2byte<\/strong>. It requires the JPEG library to be present at the compilation time.<\/p>\n<div class=\"code-box\"><div class=\"code-title\"><i class=\"fa fa-code\"><\/i> <div class=\"pull-right\"><a href=\"#\" class=\"btn btn-default btn-xs toggle-code\" data-toggle=\"tooltip\" title=\"Toggle code\"><i class=\"fa fa-toggle-up\"><\/i><\/a><\/div><\/div><pre >\n< lena.jpg sfjpg2byte | sfdd type=float > lena.rsf\n<\/pre><\/div>\n<p>Another option (suggested by Vladimir Bashkardin) is to use the <strong>convert<\/strong> utility from <a href=\"http:\/\/www.imagemagick.org\/script\/index.php\">ImageMagick<\/a>.<\/p>\n<div class=\"code-box\"><div class=\"code-title\"><i class=\"fa fa-code\"><\/i> <div class=\"pull-right\"><a href=\"#\" class=\"btn btn-default btn-xs toggle-code\" data-toggle=\"tooltip\" title=\"Toggle code\"><i class=\"fa fa-toggle-up\"><\/i><\/a><\/div><\/div><pre >\n< lena.jpg convert - lena.gray\necho in=lena.gray data_format=native_uchar n1=512 n2=512 | sfdd type=float > lena.rsf\n<\/pre><\/div>\n<p>or<\/p>\n<div class=\"code-box\"><div class=\"code-title\"><i class=\"fa fa-code\"><\/i> <div class=\"pull-right\"><a href=\"#\" class=\"btn btn-default btn-xs toggle-code\" data-toggle=\"tooltip\" title=\"Toggle code\"><i class=\"fa fa-toggle-up\"><\/i><\/a><\/div><\/div><pre >\n< lena.jpg convert - lena.rgb\necho in=lena.rgb data_format=native_uchar n1=3 n2=512 n3=512 | sfdd type=float > lena.rsf\n<\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p>One option is sfjpg2byte. It requires the JPEG library to be present at the compilation time. < lena.jpg sfjpg2byte | sfdd type=float > lena.rsf Another option (suggested by Vladimir Bashkardin) is to use the convert utility from ImageMagick. < lena.jpg convert - lena.gray echo in=lena.gray data_format=native_uchar n1=512 n2=512 | sfdd type=float > lena.rsf or < [&hellip;]\n<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":""},"categories":[4],"tags":[],"class_list":["post-197","post","type-post","status-publish","format-standard","hentry","category-faq"],"_links":{"self":[{"href":"https:\/\/ahay.org\/blog\/wp-json\/wp\/v2\/posts\/197","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ahay.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ahay.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ahay.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ahay.org\/blog\/wp-json\/wp\/v2\/comments?post=197"}],"version-history":[{"count":1,"href":"https:\/\/ahay.org\/blog\/wp-json\/wp\/v2\/posts\/197\/revisions"}],"predecessor-version":[{"id":718,"href":"https:\/\/ahay.org\/blog\/wp-json\/wp\/v2\/posts\/197\/revisions\/718"}],"wp:attachment":[{"href":"https:\/\/ahay.org\/blog\/wp-json\/wp\/v2\/media?parent=197"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ahay.org\/blog\/wp-json\/wp\/v2\/categories?post=197"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ahay.org\/blog\/wp-json\/wp\/v2\/tags?post=197"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}