{"action":"closed","issue":{"url":"https://api.github.com/repos/prawnpdf/prawn/issues/912","labels_url":"https://api.github.com/repos/prawnpdf/prawn/issues/912/labels{/name}","comments_url":"https://api.github.com/repos/prawnpdf/prawn/issues/912/comments","events_url":"https://api.github.com/repos/prawnpdf/prawn/issues/912/events","html_url":"https://github.com/prawnpdf/prawn/issues/912","id":108308938,"number":912,"title":"The image :fit option, aligns top-left, can I make it align center?","user":{"login":"Siyfion","id":338488,"avatar_url":"https://avatars.githubusercontent.com/u/338488?v=3","gravatar_id":"","url":"https://api.github.com/users/Siyfion","html_url":"https://github.com/Siyfion","followers_url":"https://api.github.com/users/Siyfion/followers","following_url":"https://api.github.com/users/Siyfion/following{/other_user}","gists_url":"https://api.github.com/users/Siyfion/gists{/gist_id}","starred_url":"https://api.github.com/users/Siyfion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Siyfion/subscriptions","organizations_url":"https://api.github.com/users/Siyfion/orgs","repos_url":"https://api.github.com/users/Siyfion/repos","events_url":"https://api.github.com/users/Siyfion/events{/privacy}","received_events_url":"https://api.github.com/users/Siyfion/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-25T11:39:10Z","updated_at":"2015-09-28T19:36:31Z","closed_at":"2015-09-28T19:36:31Z","body":"```ruby\r\npdf.image 'image_to_insert.png', :fit => [200, 200]\r\n```\r\n\r\nIf the image is wider than it is tall, ie. 400 x 200, it will align the image to the top of the \"fit\" box. Conversely, if the image is taller than it is wide, i.e 200 x 400 it will align the image to the left hand edge of the \"fit\" box.\r\n\r\nIs there anyway I can get access to the image's raw width & height or make it center it instead?"}}