Opera extension: Imagus

, , , ,

Updated: February 10, 2013 - v0.9.5
The extension is intended to complement image features that (I think) is missing from Opera by default or give features that are just simply useful. The original idea was to implement as many image related features as it's possible. Read on to find out for what the extension is capable of...

By the way, this project is still under development, it doesn't contain serious bugs, but use with caution. The features aren't in final state, so their functionality may change, which means that after an update the extension maybe won't work properly or absolutely not.

Install extension Opera 11.60-12.15 To install the extension on Opera 12.10+, you have to add the following URL to the trusted sites (O-menu / Settings / Preferences (Ctrl+F12) / Advanced tab / Security / Trusted Websites):
http://files.myopera.com/Deathamns/extension/imagus/
Or download the extension file and drop it into the browser window.

Viewer

Replaces the browser's default image resizer to a more customizable version. For instance, it's possible to set the initial sizing mode or disable the resizing totally, it can detect if an image has higher resolution, adds possibility for rotation, options for changing background color or image border, zooming to a selected area or zooming with mouse wheel, and more...

Hover zoom

Enlarges thumbnails and linked images (or even linked thumbnails) into a popup with just a mouse hover.
As well as the Viewer, it's also fairly customizable with some extra features, such as full-zoom which allows you to view the image with original size in the same tab, rotation or it can load image albums as well.

Tools

This section contains global features or features that have less options.

  • Shortcuts - they can be used both on Viewer and Hover zoom
  • Opening images - many ways for opening images from web pages (e.g., background images)
  • Send image to... - it sends the image address to an online service (e.g., reverse image search, image editor, gif frame extractor...)
    New service can be added in preferences (one per line).
    Format: "[+]Name|search engine's URL". In the service URL is placed the image address with the %url variable.
    Example: TinEye|http://www.tineye.com/search?url=%url
    If you put a "+" sign before the name (e.g., "+TinEye"), then it means that the service will be used when the shortcut is used. Multiple entries can be enabled, then all of them will be opened.

Sieve

This is a set of rules which are helping the extension to find the larger images.
The rules are based on regular expressions, JavaScript and a bit of HTML.

Gallery

This is something like a bookmark for images. It stores only the image address with a thumbnail, and if possible, then one or two source link. The "Source", which is the address of the page where you've seen the image, and the "Target", which is the address of the link (if it wasn't the same as the zoomed image address).
When an image is opened or "hoverzoomed", then pressing the shortcut (G by default) will add it to the list without any questions. Shift + G will prompt for labels. Deleting images from the list: Ctrl + Right click on the thumbnail cell or Ctrl + Click to select some and the minus button from the button-list. Shift + Right click on a cell to edit the labels.

Grants

At Grants you can tell on which sites can the extension work.
It's also possible to block just some Sieve rules.

Syntax: grant operator (optionally followed by rules separated with commas) colon address
(!|!!|~|~~)[rule1,rule2,...]:(*|string|regular expression)
Also there is possibility to add comment lines, simply by starting the line with a ; (semicolon).
When you double the grant operator (! or ~), then it means that you want use regular expression in the URL. "*" means everything.
Example for blocking on all sites:
!:*
Blocking all sites except opera.com (actually it will allow any URL that contains the "opera.com" string, and yes, the order matters):
!:*
~:opera.com
To block a few sites:
!:http://www.google.com
!:opera.com
!!:^ftp://
Blocking on all Google sites, except German and French:
!:http://www.google.com/
~~:^http://www\.google\.(?:de|fr)
Allowing only the "MyOpera" and "LinkedImages" rules here on my.opera.com:
~#MyOpera,LinkedImages:my.opera.com


For the extension's icon thanks goes to http://esk6a.deviantart.com/

Known Issues

# (vw) Rotated image has incorrect position
# (vw) When larger image was opened, going back won't properly load the smaller one
# (vw) "res" cannot be handled if it is a function
# (lst) Thumbnails are not loading when high-res mode disabled, and the specific rules support it
# (lst) Sometimes the last thumbnails are off the screen
# (hz) Only one SVG can be loaded in the popup at a given session (DSK-376698)
# (hz) SVGs disappear sometimes when zooming a bit deeper (seems it's an Opera bug)
# (hz) Preload doesn't work (only) for high-res images
# (hz) Preload on hover doesn't work if there is more than one possible image to load
# (hz) Hiding image dimensions in caption hides the whole caption
# (hz) Sometimes the image blinks once when it started to load, especially when interlaced loading is on (but If I have to guess, this is a bug in Opera, again)

Some Opera related issues.

v0.9.5 - February 10, 2013 | Update! | Changelog

Fixes for the problems introduced in the previous release, also some other improvements, which are listed in the changelog. There was a modification, that broke some of the rules, but updating the Sieve will solve the problem.

v0.9.4 - January 20, 2013

Read the changelog, because this time there is not much to talk about. If you don't understand something, feel free to ask.

Don't forget, there is no auto-update anymore, you have to click the "Update!" or "Install extension" link above. And, as usually, updating the Sieve is recommended too.

In addition, a translation management system was made in the background, so if you're interested in to translate the extension to your language, drop me an email (my username at myopera dot com).

v0.9.3 - September 09, 2012

From this version the extension won't be automatically updated by the browser. However, the notification about new version will appear on the toolbar icon (the new version number with green background) as did before.
This means that next time you have to manually update the extension, coming here and clicking on the "Update!" link above (you can click on "Install extension" at the top, it's the same).
It's recommended to update, since if you don't, you won't get any notification about future releases.

v0.9.2 - August 17, 2012

!! As in version 0.9, you have to update the Sieve again (Preferences / Sieve / the update button - double arrow pointing down). It must be done, otherwise most of the features of the extension won't work.

  • From now, every "link" and "img" parameter must start without the https?:// protocol string and the www sub-domain (if present). This applies only to http.
    The reason of this to skip writing every time the protocol, and the www, because they are very common, almost every rule starts with that.
    For example if the URL is "http://www.opera.com/image" (we assume that the site has a secure connection, and it works also without www), then the older version's rule would look like this:
    link: ^(https?//(www\.)?opera\.com/image)
    to: $1
    In the new version, the URL first will be converted to "opera.com/image" and this will be checked against the regexp, so now the rule should be written as:
    link: ^(opera\.com/image)
    to: $1
    But the result will be the same; "http://www.opera.com/image" (returned by "to: $1"), because what is removed first, it will be added later. However, sometimes you want to prevent this behavior (adding what is removed), therefore if the replacement starts with http, then the script won't prepend the removed string.
    There may be cases when the URL will work with "www" and some other sub-domain. E.g., "http://www.opera.com" and "http://test.opera.com". In that case the following expression will match only "http://test.opera.com", but not the URL with "www":
    link: ^test\.opera\.com
    Since the www is removed, and now the URL can be "opera.com" or "test.opera.com", the correct expression would be:
    link: ^(?:test\.)?opera\.com

    Besides these, from now, the "to" parameter can have only one function, and that function can return multiple results joined by new lines. BUT, if you use this method, the full URL must be matched, and full URL must be returned. If "to" is not a function, these restrictions have no significance.



Something to play with...
The following stuff is experimental, they future and exact functionality is not known yet.

Screen capture (Opera 12.10+)
Since this sounds like an image related stuff, probably this will be implemented somehow into the extension. Actually, it's already working pretty well, however the only thing you can do with the captured image is to save.

So, how does it work?
Go to a random web-page, and press the shortcut (Alt+Shift+T by default, change at Prefs/Tools/Shortcuts) to capture the visible content or Ctrl+Alt+Shift+T to capture the entire page.

Opera can capture only the visible content, means, that the extension must jump all over the page to take shots of every part, which will seem a bit weird, so don't panic, just wait until a new page opens with the captured image (actually canvas), where you can choose the output format (jpeg or png), and then save as.

It works on all pages where an extension can work (text, html, xml, svg (of course svg can be saved in Opera already, which is the recommended method)).

There are sites that use infinite scrolling, or maybe you use an extension for that purpose (AutoPatchWork, AutoPager), but when you taking a screen-shot, probably you don't want to end up with a kilometer-long image, and that's why the extension won't go further than the page size was at the moment when the capture started.

There are floating elements that are always at the same place on the screen. Normally they would be printed on every frame, but the extension tires to handle them, but it's pretty hard to deal with them correctly, so maybe you won't always get the result what you want.

Other problems you may face with screen capturing:
- plugin-content can't be captured
- it can be used only when page-size is 100%
- you may get interesting results with enabled HWA
- on captured image text doesn't have sub-pixel rendering
- use "Fit to Width" to hide horizontal scrollbars if they're not needed
- dimensions of dynamic pages can change, which will result a somewhat broken image
- you may first scroll down the page to force the dynamically generated content to load
- "default" is the suggested filename when saving (since, sadly, there is no Opera API for saving files)
- the page is re-rendered before capture, so you won't get what you actually see (example)
- it may use pretty much memory on large pages (too long pages cannot be captured (a blank canvas will be shown), since Opera uses memory limit)

Extracting frames from animated images
As the title says, it can extract frames from APNG or GIF images, also play them slower/faster forward/backward.
Unfortunately, Opera doesn't use the global cache for extensions, so the image will be downloaded again, which will take a couple of moments for a few MB image (at the moment there is a size limit, maximum 15MB allowed).

To try out, add a new line to the "Send image to..." list at Preferences / Tools:
frames|anim.html?#%url
Or add this if you want to be able to save the frames (slower) (added by default):
frames|anim.html?img#%url

Opera extension: Source

Comments

Unregistered user Friday, August 26, 2011 8:53:19 PM

Superb writes: Finally some real deal image pop-up extension. Excellent, publish it in opera extension store too.

Lepsaeus Saturday, August 27, 2011 8:16:03 AM

I've resolved the problem, I was having with Google Images for a couple of weeks, the way you suggested, thanks for which. I am not computer-savvy and do not understand what I am supposed to do with the "rules".
I thought Imagus updates automatically. confused

Unregistered user Monday, August 29, 2011 5:40:48 PM

Anonymous writes: by the way, it should be "Loading..." and not "loddig". just helping since you said your english wasnt that good. good extention anyway. definitely using it for now!

Deathamns Monday, August 29, 2011 7:31:59 PM

Originally posted by Lepsaeus:

I thought Imagus updates automatically. confused

The extension itself yes, but the rules not (yet).

Originally posted by anonymous:

Anonymous writes: by the way, it should be "Loading..." and not "loddig".

I know, the pop-up messages are exceptions, but pointing to any other language failure is appreciated.

stefan4875 Tuesday, August 30, 2011 7:57:32 PM

Google Images seems still not to work. It loads the first image i hover but any further image doesn't work. I updated sieve (with the methods the page before and with the update function). But that makes no difference.

Oh and is there any tutorial to the several filter options? Till now i only use "img" and "to". The only ones i understand.

Last but not least: Best extension i use until now (and i have several installed).

Deathamns Tuesday, August 30, 2011 10:01:56 PM

It's working for me, but I'm too tired to suggest anything. I'll do some further tests...

About the filters, there is a reason why I haven't made any description for them yet; the resolver-system isn't finished. But as approaching to the "final" state, I'll describe how to make new rules.

stefan4875 Wednesday, August 31, 2011 1:28:28 PM

I did some further testing and discovered that it works perfect with images.google.com but has the mentioned problems at images.google.de. Only difference is the TLD.

Deathamns Wednesday, August 31, 2011 2:29:35 PM

Indeed, found the bug too. I won't update now, but fortunately, anyone easily can fix it.
Preferences / Sieve / search for "GoogleImages" / click on it to expand / uncheck the Loop parameter (first checkbox) / Save

stefan4875 Wednesday, August 31, 2011 2:39:49 PM

Simple and it works. Thanks

inDigazzZAnuarSh Thursday, September 1, 2011 6:56:09 AM

Originally posted by Deathamns:

Indeed, found the bug too. I won't update now, but fortunately, anyone easily can fix it.
Preferences / Sieve / search for "GoogleImages" / click on it to expand / uncheck the Loop parameter (first checkbox) / Save


i've only GoogleImages_xhr with no "Loop" checked...

Deathamns Thursday, September 1, 2011 7:48:00 AM

Uncheck (if checked) Loop on both GoogleImages and GoogleImages_xhr, and it will be ok.

inDigazzZAnuarSh Thursday, September 1, 2011 11:50:13 AM

i've !!! only !!! GoogleImages_xhr with no "Loop" checked, but https://bugs.opera.com/s/333/1/_/images/icons/favicon.png - is here...

W1S3 Thursday, September 1, 2011 12:07:50 PM

Just one word: AWESOME!

Gregnctrns Saturday, September 3, 2011 9:21:35 AM

How can I disable popup preview only on 4chan?

Unregistered user Saturday, September 3, 2011 9:44:20 AM

Anonymous writes: The hover zoom frame creates "after images" while moving the mouse around when the captions are turned off.

Deathamns Saturday, September 3, 2011 9:45:08 AM

Originally posted by AnuarSh:

i've !!! only !!! GoogleImages_xhr with no "Loop" checked, but https://bugs.opera.com/s/333/1/_/images/icons/favicon.png - is here...

Wait for the next release, I don't have better idea.

Originally posted by nctrns:

How can I disable popup preview only on 4chan?

You can't. In development version is already implemented such a feature. In next weeks I'll publish it.

Deathamns Saturday, September 3, 2011 9:59:05 AM

Originally posted by anonymous:

Anonymous writes: The hover zoom frame creates "after images" while moving the mouse around when the captions are turned off.

I'm not sure what you mean. Can you show me a screenshot?

inDigazzZAnuarSh Saturday, September 3, 2011 10:04:51 AM

Originally posted by Deathamns:

Wait for the next release, I don't have better idea.


Bug 'fixed' ...

It turned out that ...

google
http://s1.ipicture.ru/uploads/20110903/O4nWQULJ.png -

Google
http://s1.ipicture.ru/uploads/20110903/KAwaynXw.png -

Unregistered user Saturday, September 3, 2011 9:18:22 PM

Anonymous writes: I am wondering if i can disable the link pop up when putting a mouse over any picture, because it's annoying and can't see a part from the picture????

Deathamns Sunday, September 4, 2011 6:50:46 AM

If I'm right, you're talking about the tooltips.
Tooltips can be seen only when you remove the status bar, otherwise I'm taking care of them.
You can enable back the status bar (if it's disabled), or you can go to Preferences (in Opera) / Advanced / Browsing / and disable the "Show tooltips" option.

Unregistered user Sunday, September 4, 2011 11:15:57 AM

Anonymous writes: Yeah, you're right, tooltips are... Thanks

Unregistered user Sunday, September 4, 2011 2:05:52 PM

Bart writes: Can you fix the bug when I move the cursor in the way of picture it disappears?

Deathamns Monday, September 5, 2011 6:23:09 PM

Update to v0.8.8 ...

coolmyll Wednesday, September 7, 2011 3:53:34 PM

Thanks for the extension. I only have problem with the netvibes site.

http://www.netvibes.com/cool_myll

Try the reddit widget in this site.

Deathamns Wednesday, September 7, 2011 6:23:20 PM

Known issue. Doesn't work well with frames yet.

Unregistered user Friday, September 9, 2011 11:29:35 AM

Anonim writes: New revision makes scrolling through images bugged. When I hold left mouse button and move large image around like in previous releases, it becomes buggy and shakes uncontrollably.

Unregistered user Friday, September 9, 2011 12:11:35 PM

Anonymous writes: Sorry for the late reply. Here's a screen of the problem with "after images" I was talking about. http://i56.tinypic.com/xnc61g.jpg Notice the lines in the top and at the right. Captions are turned off.

Deathamns Friday, September 9, 2011 12:35:55 PM

Originally posted by anonymous:

Anonim writes: New revision makes scrolling through images bugged. When I hold left mouse button and move large image around like in previous releases, it becomes buggy and shakes uncontrollably.

I assume that you are talking about the image resizer...
In Preferences set the "Pixel threshold at panning" to 2 and try then.

Originally posted by anonymous:

Anonymous writes:
http://i56.tinypic.com/xnc61g.jpg Notice the lines in the top and at the right.

If I well remember, in Opera 11.50 (or lower and maybe 11.51 too) there was a bug with rendering shadows. Try with a recently released snapshot.

Unregistered user Sunday, September 11, 2011 1:37:36 PM

Anonymous writes: Why does it say "Loddig.." when it's loading a picture?

metude Monday, September 12, 2011 10:57:35 AM

Could you add a filter for http://imm.io/96mt links?

Deathamns Monday, September 12, 2011 12:15:19 PM

Originally posted by anonymous:

Anonymous writes: Why does it say "Loddig.." when it's loading a picture?

It's just a wordplay, a joke that only I can understand... All the notice messages will be corrected when the extension steps out from the development stage.

Originally posted by metude:

Could you add a filter for http://imm.io/96mt links?

Try updating.

DoTheEvolutionTheEvolutionBaby Tuesday, September 13, 2011 2:47:30 AM

shortcuts for

Natural size - 1
Auto fit - 2

are also shortcuts for next and previous tabs when you have single key shortcuts allowed in opera worried

Deathamns Tuesday, September 13, 2011 7:58:33 AM

You can change those shortcuts both in Opera or in the extension (although there is a bug at my side, you can save changes, but you will always see the default values).

Unregistered user Sunday, September 18, 2011 11:55:44 AM

匿名者 writes: This extension is wonderful. Thank you

inDigazzZAnuarSh Friday, September 23, 2011 3:36:11 AM

Please add a button on the address bar, which will open the settings in the pop-up window.

Often have to switch between the "Preload images" Off / On mouse over, and to do this every time to open the settings are very long and not easy.

Deathamns Friday, September 23, 2011 12:05:48 PM

I'll see, but at this moment the development is stagnating.

inDigazzZAnuarSh Friday, October 7, 2011 5:26:45 AM

if "Preload images: On mouse over" enabled then the images (if they > 5) is not completely loaded.

Deathamns Friday, October 7, 2011 8:34:33 AM

You mean absolutely not or you need to wait for it?
If the second, then it's OK. Preload on hover just starts loading when you move your mouse over images/links, it won't display the whole image until it is loaded. It depends on your bandwidth too.

Probably the next release will have the "Preload on page load" option, which will be available when Opera 12 comes out (since I started using some of its new features, this addon won't be fully compatible with older versions of Opera).

inDigazzZAnuarSh Friday, October 7, 2011 9:36:29 AM

Most likely the first, as there is no indication that the data is loaded (no progress bar)

Deathamns Friday, October 7, 2011 11:19:19 AM

So, you see something like this, and never loads fully the image?
In that case, I have no idea.
If it worked before, maybe something wrong with your Opera. Try with a clean install.

inDigazzZAnuarSh Friday, October 7, 2011 12:07:18 PM

Originally posted by Deathamns:

So, you see something like this, and never loads fully the image?


yeap

Originally posted by Deathamns:

In that case, I have no idea.If it worked before, maybe something wrong with your Opera. Try with a clean install.


Ok, but... Ok

fisherman10 Tuesday, October 11, 2011 11:24:49 AM

hi there....

could you check if it's working with the new facebook newsfeed? the pics are not previewing like the old style facebook.

Thanks and great extension! looking forward for it to be official.

Deathamns Tuesday, October 11, 2011 5:38:29 PM

Try updating the filters: Preferences / Sieve / update (last button in the row)

inDigazzZAnuarSh Tuesday, October 11, 2011 7:25:44 PM

When you'll continue work on extension?

Deathamns Wednesday, October 12, 2011 8:10:50 AM

Soon.

Avola Thursday, October 13, 2011 9:02:18 PM

Is there an option to auto-enlarge small images to fit the screen that I'm missing? If not, could you please add one?

Deathamns Friday, October 14, 2011 12:45:52 PM

No, there isn't. Yes, I can.

Unregistered user Saturday, October 15, 2011 4:20:27 AM

fisherman10 writes: Hey...what happened to youtube thumbnail previews? it's quite useful.

Deathamns Saturday, October 15, 2011 6:22:47 AM

For me, it was more irritating than useful, so I disabled it by default.
To enable: Preferences / Sieve / select youtube (Ctrl + click) and enable (sixth button in the row) / Save.

Unregistered user Monday, October 17, 2011 9:59:59 AM

RockyMM writes: Wow, I mean WOW! Keep up with the good work! I can't wait for the day when you'll submit this to addons.opera.com!

How to use Quote function:

  1. Select some text
  2. Click on the Quote link

Write a comment

Comment
(BBcode and HTML is turned off for anonymous user comments.)

If you can't read the words, press the small reload icon.


Smilies