jrac icon indicating copy to clipboard operation
jrac copied to clipboard

Viewport / resize programmatically

Open XORwell opened this issue 13 years ago • 3 comments

Any chance to get Viewport height/width as options like the image has it?

Or maybe you could give some advice how to resize the viewport? I need to rotate the image. This already works, also with updating the preview. If the image is 180dg rotated, the viewport-dimension doesnt fit to the image-dimensions. I'm trying to update the viewport-dimension $('.jrac_viewport').css('height', value) / $viewport.height(value) but this also changes the image-dimension.

By the way: image rotation would be a great feature! ;)

XORwell avatar Jun 22 '12 13:06 XORwell

I have added the following options to the jrac() method:

  • viewport_width and viewport_height
  • viewport_image_surrounding

Let me know if it help in your case.

Ps: Yes I should look at adding rotation!

trepmag avatar Jun 23 '12 08:06 trepmag

Rotate feature try: https://github.com/trepmag/jrac/issues/14

trepmag avatar Jun 23 '12 12:06 trepmag

Great! Thank you! :thumbsup: I'll try both asap and let you know..

XORwell avatar Jun 23 '12 13:06 XORwell