Save Image Router

Save Image Router
Download from the Chrome Web Store here.

Having used the Save Image in Folder (link) Firefox Add-on for quite a while, I’ve been look for an equivalent Chrome extension. Despite several requests for such an extension, there have been none that offer the safe flexibility. Main reason for it probably being that Chrome does not allow saving files outside the configured downloads location. One extension does offer the context menu, but not the folder choice. Another offers both, but does not have fine-grained control over the different folder locations, such as ability to modify the file name prior to the download to certain location.

That’s why I set out to make my own extension, Save Image Router, that would fulfill the following needs:

  • Context menu on images for a direct download.
  • Direct choice of the download directory from the context menu.
  • Configurable ability to modify the file name prior to download per directory.
  • Ability to choose what happens if the filename already exists, per directory.
  • I can image more useful things, but the above are the minimum.

Obviously, because of the Chrome security rule of only saving downloads under the configured location, the directories to choose from can only be under the Chrome download location. Possibly some trickery could be done here by the user with symlinks to other locations or such, but I did not try it (check the update below).

The result is the Save Image Router extension.

If you have any ideas or feedback, feel free to leave a comment on the Chrome Web Store.

Update 2016-07-15:

If you really want to save images outside the Chrome download location, you can do the following:

Windows: From the command line (cmd.exe from start->run) type the following command (replace the paths accordingly):
mklink /D “C:\yourChromeDownloads\LinkName” “D:\yourDesiredLocation”
And point the extension to the newly create link name.

Linux/OSX: create a symbolic link to the desired directory with the following command (replace the paths accordingly):
ln -s /Path/to/desired/directory /DirectoryName/inside/Chrome/downloads
And point the extension to the newly created directory name inside the Chrome Downloads location.

12 thoughts on “Save Image Router”

  1. This is a great extension! But…
    I really would like the ability to save to locations anywhere on any disk (your “trickery could be done here by the user with symlinks” sounds promising). Also I would really like the ability to use “\” to separate folders instead of “/”, it would make copy & paste easier.

    Thanks,
    ~D

    1. Thanks for the feedback!

      I just published an updated version 0.2.0 that allows you to use either slash or backslash for sub-directories. The backslashes will be automatically converted to slashes internally.

      As for the symlinks, I will update the blog in a bit to include some instructions on how it can be done. Unfortunately I cannot do anything more about it from the extension, as it is not allowed by the Chrome security policy.

      cheers

  2. Thanks for the changes! Wow, quick response.

    I have tried the windows shortcut you describe but either I’m doing something wrong or it doesn’t work for me using Windows 10.

    I have this setup in Save Image Router:

    Title Directory Save dialog If filename exists
    Images tumblr _Images_tumblr x dialog

    I created a shortcut in the default Chrome download directory that points to a folder in another location. When I try to use the extension, it creates a folder in the default Chrome download directory called _Images_tumblr and puts the file there.

    Sorry if I don’t understand this properly. Any help would be appreciated.

    ~D.

    1. Hmm, maybe the shortcut isn’t the correct type after all…

      Is the name of the shortcut exactly “_Images_tumblr” and not “_Images_tumblr – Shortcut”?

      If it is and it still doesn’t work, then you can try the following way:
      open your command line (cmd.exe from start->run), and type the following command:
      mklink /D “C:\yourChromeDownloads\_Images_tumblr” “D:\yourOtherLocation”
      (with the proper locations of course).

      This will create a so called soft link. It will look like the _Images_tumblr in the Chrome downloads folder contains the files you save, but actually they will be located in your other location. You can double check this by deleting them in your other location and see them disappear from the Chrome soft link.

      If you confirm that this works, I will update the description in the post!

  3. Yes the name of the shortcut was exactly “_Images_tumblr”.

    I deleted the shortcut and tried your “soft link” technique and it works as described! However I can’t use the name “Images tumblr” to point to the symbolic link in Save Image Router. If I do I get two save dialogs. If I use some other name, like “tumblr images” or “Images tumblr 2” everything is OK. That seems a bit weird!

    BTW, don’t forget that “~” is a valid filename/path character in Windows.

    Again, thanks for your quick reply.

    ~D.

    1. Ok, glad it worked!
      Not being able to use “Images tumblr” is weird indeed, could be a bug. If I can reproduce it I will fix.
      You could probably get rid of it if you uninstall and reinstall the extension, but then you would have to recreate all your entries.

      The “~” is not allowed by Chrome. Possibly because it has special meaning on other platforms.

  4. Hey

    Really like the extension but I ran into a weird problem after a short while. Image Router started saving things into \Downloads\ instead of the folders I had given to it earlier.

    I went as far as removing the extension which did not help followed by resetting the browser settings but the problem still persists. What should I be looking out for?

    1. Hmm, that’s strange, i have never seen that happen.

      After the browser reset, did the extension still have the folder settings? Did you try to reinstall the extension itself? If you are on Windows, please try to use ‘/’ as a separator instead of ‘\’, it shouldn’t make any difference, but just to rule it out.

      If you reinstall the extension, does it start failing right away, or does it again take some time until it does?

      I will try to reproduce it and find a fix.

  5. Great extension, thank you!
    Feature request:
    It would be great to have the option of automatically renaming the saved file without a Dialogue. Something like:
    %yyyy%_%MM%_%dd%_%random% as a rename, or a file name prefix
    ‘Save Image in Folder’ Firefox addon had this functionality, and it was super helpful. Let me save to a folder and the image was automatically dated in the file name.

    1. I had several requests for this. I’ll add this functionality in the next version in the next couple of days.

  6. i really wanted to use this extension but adding direcotory keeps giving error
    directory folder contains illegal charactors

    1. Are you able to create a folder on your drive with the same name?
      if yes, could you paste here what names you are trying to use.

Leave a Reply

Your email address will not be published. Required fields are marked *