Git Product home page Git Product logo

and-rej / rotate-and-zoom-image Goto Github PK

View Code? Open in Web Editor NEW
15.0 0.0 2.0 84 KB

Is there a picture with wrong orientation, or just displayed too small? Rotate or zoom images directly on any website, just one in the context menu.

Home Page: https://addons.mozilla.org/firefox/addon/rotate-and-zoom-image/

License: Mozilla Public License 2.0

JavaScript 93.40% CSS 0.26% HTML 6.34%
firefox firefox-addon firefox-extension webextensions image image-manipulation context-menu image-zoom addon

rotate-and-zoom-image's People

Contributors

and-rej avatar jose1711 avatar mikkcz avatar start-azecevic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

vitexus jose1711

rotate-and-zoom-image's Issues

Missfunction of zooming

I want to report that while zooming in, the image is beeeing cut-off in some parts (aspecially from the top and/or bottom) and it's restored while using the "reset" function. Please fix it asap because it makes hard to enjoy the pics while they are cropped and unable to scroll

Please, add option for negative image

I know this is not the purpose of this add on but it would be perfect if it could also show the image in negative (Inverted brightness) in addition to rotating, zooming and flipping.

Sync settings

After #6 is implemented, it will be nice to be able to sync the settings for the user.

replace rotate 180 left right, by rotate 180

hi,

could you please replace : rotate 180 left and rotate 180 right by a simple rotate 180 in the menu ?
for me the result is the same, only the animation changes.

have a nice day,

Posibillity to remove options contex menu item

Hello,

I am kind of newbie in firefox add-ons implementations. And I have a question, is there a way to remove the context menu item that opens the options?
I am trying to remove it from userChrome.css file but no result yet. Unable to find an id for the element.

Any advice would be very helpfull.

Thank you in advance!

HTML5 Canvas issues

Does not recognize images in an HTML5 canvas. An example of this is the "RRT-Connect algorithm" image at the bottom of this page. The image menu (rt click) does not contain the rotate-and-zoom-image option. Select 'View Image', and the resulting image is recognized by rotate-and-zoom-image, but any attempts to zoom or rotate are unsuccessful.

For reference, the "Image Zoom" FF extension handle[sd] this correctly, including allowing the demo to run resized.

Feature request: Modifier key + Mouse Wheel to zoom images

It would be great if a combination of modifier key plus movement of the mouse wheel could be assigned to zoom in and out an image.

When hovering an image with the mouse pointer, if you hold the Alt key (or maybe other, just an example) and rotate the mouse wheel up, the image would zoom in and when rotating the mouse wheel down, the image would zoom out, so it wouldn't be neccesary to right click on the image and find the proper submenu option to achieve this.

It would be a similar behaviour as when you hold CTRL and rotate the mouse wheel and the page zoom changes dinamically, but limited just to the image under the mouse pointer.

Does not work on images with links

Seems it does not work on images with links (so far I have noticed this directly on AMO, when trying to rotate the Firefox logo in the header). The possible cause is here, when the variable may got assigned to null by a subsequent call for the link context menu. I will need to verify first.

Having a shared variable is not a nice pattern in any case, but I do not see any obvious way to encapsulate it e.g. in an object instance at this moment. Maybe keeping a table of context menus opened for the document + the clicked images, and sending some ID back with the message...

Zoom and rotate can cause top left of image to become unviewable

I wanted to provide you with an image example. So, I went to POF and I found a random female profile. I right-clicked one of her pictures and selected "open image in new tab". This was the resulting URL link.

https://pics.pof.com/dating/1180/3/51/5149aea79-8bee-4825-9ee9-3c6cdb432244.jpg

I then tried doing two things.

1.) I tried zooming in to 400%. Then I used the page's horizontal and vertical scrollbars to see other parts of the picture. On the left side of the image, it was missing a lot of her head. I could only see maybe half of her forehead. On the top side of the image, there was a lot of image missing to the right of her face.

2.) I then did a full reset and rotated the image 90% to the right. I then zoomed in to 400%. I used the page's horizontal and vertical scrollbars to see other parts of the picture. On the left side of the image, there was a lot of image missing to the left of her face. On the top side of the image, it was missing most of her head. I could only see the bottom 25% of her eyes and nothing above her eyes like her forehead or hair.

You may get slightly different results using the above steps, as it might be dependent on how big your browser is and what your desktop resolution is. I am using a 1600x900 desktop screen resolution (you can change desktop screen resolutions in Display Settings). And the browser window was sized to around 1050x870. The truth is, even if I made my browser a little bigger like 1600x870 (taskbar covers up the bottom 30px), I would still have the same problem. Like in second example, everything above her eyes would still be cropped out. If you tried to replicate this issue, I would suggest maybe temporarily changing your desktop resolution to 1600x900 just in case. And if you get slightly different results, maybe try using a larger zoom like 500% - 900%. But this problem definitely does exist. It's been bothering me so long that I just never used the feature. In fact, I was just now looking online for another Firefox extension that could replace yours. But I only found one where it just rotates the image 90% to the right each time that you use it. It did not have flip and zoom features. So I thought maybe if I could get you to fix your extension, I could just stick with yours. I have seen in a previous post where this was blamed on child page elements and stuff like that. But the URL I provided you with is goes directly to an image with no other page elements. I may be wrong, but I think that this bug affects rectangle shaped images and not square shaped images. It probably affects all image shapes though. I just looked on the closed issue dates and this was reported almost 13 months ago. I can't believe no one has reopened this issue or that the issue hasn't been worked on or fixed in those 13 months. Let's try this again. (fingers crossed)

Flip images

Please add a feature to flip images horizontally or vertically.

No Flip Option :(

Hi, as now the bad quantum forced intall is hitting, they messed up with everything, so most add-on work no more I was using "Image rotate or flip" now I got your but seen with stupefaction and disdain that you have no flip option (horizontal and vertical) which is a must have, I removed the addon, I would reinstall if this is implemented in a very near future.

Add mouse support

It would be quite nice if it could be controlled via mouse buttons/wheel - especially if the bindings would be configurable.

Allow to move context menu items to the top most level possible

Moving a mouse pointer to the narrow field to expand a menu, without accidentally moving it off the field, can be slow. I suggest that some of the core items be moved to where they can be selected with "right click, select option, click", rather than "right click, hover mouse over field, slide mouse to right without hovering over another field, click". The items I recommend the most for this are 'fit to screen', 'fit to browser width', 'double current zoom', and/or 'halve current zoom'.

Where to rotate

Hello.If you can just add where to rotate(left or right) it would be awesome and this will be perfect addon :) Thank you

Marko. T

Support background images

A lot of websites today (including mozilla.org) do not use <img> tags, but include the some images via CSS background. This should be also supported to rotate or zoom.

So instead of checking if the element is <img>, I should include a check for background image, and find a way, how to rotate/zoom it possibly without moving the element itself and its content.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.