jrac
jrac copied to clipboard
Viewport / resize programmatically
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! ;)
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!
Rotate feature try: https://github.com/trepmag/jrac/issues/14
Great! Thank you! :thumbsup: I'll try both asap and let you know..