Showing questions tagged: Show all questions

Problem with HTMLCanvasElement.toBlob(), "image/webp", & anchor (<a>) using download attribute

I have a local HTML/Javascript document I use for compressing local image files. It relies on HTMLCanvasElement.toBlob() to achieve the compression in the usual way; a p… (read more)

I have a local HTML/Javascript document I use for compressing local image files. It relies on HTMLCanvasElement.toBlob() to achieve the compression in the usual way; a pertinent excerpt:

                   const output = document.getElementById("outputDiv");
                   const blobURL = URL.createObjectURL(file);
                   const img = new Image();
                   img.src = blobURL;
                   // ...
                   img.onload = function () {
                       URL.revokeObjectURL(this.src);
                       const canvas = document.createElement("canvas");
                       canvas.width = img.width;
                       canvas.height = img.height;
                       const ctx = canvas.getContext("2d");
                       ctx.drawImage(img, 0, 0, img.width, img.height);
                       canvas.toBlob(
                           (blob) => {
                               const anchor = document.createElement("a");
                               anchor.download = getNewFileName(file.name); /* uses extension .webm for .webm, .jpg for everything else */
                               anchor.href = URL.createObjectURL(blob);
                               anchor.textContent = "DOWNLOAD";
                               output.append(anchor);
                           },
                           mime,  /* set earlier based on file extension: .webm -> "image/webm", everything else -> "image/jpeg"
                           quality / 100    /* (user-specified) */
                       );
                   };

Here's the quirky thing, though: when I'm compressing, say, a .jpeg file (or a .png), clicking on the download link opens a save-file dialog, but when using a .webm file, it opens the compressed image in a new tab! True, I can always then save the image from there (the resulting file is in Firefox's temp folder), but I don't understand the difference in behavior -- and indeed, in at least one other browser I tried (the latest Vivaldi) the download happens as expected regardless of input file type. In all cases the anchor hrefs look like, e.g., "blob:null/724ab85e-53ba-4890-9868-7f1ba27d4278".

Any idea why this is happening? I highly doubt it's the intended behavior.

Browser: Firefox 132.0.2 for Windows. Environment: Windows 10 Home 22H2 version 10.0.19045.

Asked by E.C. Marm 6 days ago

Last reply by E.C. Marm 5 days ago

Excel online via Sharepoint: Spreadsheet zoom controls not showing in lower right corner

FF v132.0.2 (64-bit). We utilize Sharepoint/Microsoft 365, and since switching to Firefox, the zoom controls normally located in the lower righthand corner for Excel spre… (read more)

FF v132.0.2 (64-bit). We utilize Sharepoint/Microsoft 365, and since switching to Firefox, the zoom controls normally located in the lower righthand corner for Excel spreadsheets is just gone. This is with extensions disabled, even tried Private View. Chrome properly shows it.

Screenshots attached showing Firefox/Chrome. That basically eliminates our ability to use FireFox if that's the case since there's no other way to do it.

Asked by DGDomtar 5 days ago

Different page size across different platforms: laptop vs. PC?

I'm logged in to my Firefox account, I visit (for example) ESPN.com on my PC. I adjust the size to fit my PC screen, then when I visit the same site on my laptop the webs… (read more)

I'm logged in to my Firefox account, I visit (for example) ESPN.com on my PC. I adjust the size to fit my PC screen, then when I visit the same site on my laptop the website doesn't look right so I have to size down, but then when I visit on my PC I have to size up again etc etc etc.

I want to individualize the size of webpages, how do I do that?

Asked by batboy42 1 week ago

Last reply by batboy42 5 days ago

Appearance issues

My firefox browser is displaying webpages with a black background despite being set on light mode.

Asked by Nick 5 days ago

Cannot use Firefox to access internat Intranet due to not http or https

Firefox automatically adding the https to our internat Intranet and I cannot access it. Auto adding the https is off. This site is only available within our firewall. I h… (read more)

Firefox automatically adding the https to our internat Intranet and I cannot access it. Auto adding the https is off. This site is only available within our firewall. I have had access forever until recent updates have made it impossible to access it.

I type in the URL: ourintranet/ and that has always gone to the site. Now, it is changing it to https://ourintranet/ when I hit enter...never done this before. I have this setting: Don’t enable HTTPS-Only Mode enabled.

Asked by jbehymer 6 days ago

Last reply by jbehymer 6 days ago

Cannot move cursor by word using Option key in URL Search bar anymore.

I beleive in the recent versions of Firefox, shortcut keys have been added/changed such that holding the Option key while in the URL Search bar activates other functions … (read more)

I beleive in the recent versions of Firefox, shortcut keys have been added/changed such that holding the Option key while in the URL Search bar activates other functions (Switching search engines: Option + Up/Down Arrow) and completely disables my ability to move left or right through the URL by word.

Is there any way I can disable this shortcut key combination?

Asked by Richard 6 days ago

allow certain cookies

I need to ensure a smooth experience on the website - Select the menu symbol. - done Select Settings. - done Select Privacy & Security. ? Choose on… (read more)

I need to ensure a smooth experience on the website -

   Select the menu symbol. - done
   Select Settings. - done
   Select Privacy & Security. ?
   Choose one of the following options:
       Option 1: To allow cookies from all (third-party) websites, check Standard.
       Option 2: Scroll down. To allow cookies only from Pearson, select Manage Exceptions…
   If you chose Option 2, under Address of website, select the text box and enter the websites listed below, selecting Allow after each one:
   pearson.com
   pearsoned.com
   pearsoncmg.com
   mathxl.com
   myitlab.com
   ecollege.com
   pi.pearsoned.com
   Select Save Changes.
   Click the X symbol to the right of the Settings tab to close it.
   Refresh the Pearson page to ensure that your browser will accept cookies.

Asked by Powell.Lesley-Jane 6 days ago

Save Settings

I just had a suggestion regarding settings that you set. I would like to know if there is any feature being worked on to be able to save all your settings (or maybe even… (read more)

I just had a suggestion regarding settings that you set. I would like to know if there is any feature being worked on to be able to save all your settings (or maybe even back up) to your login? or back them up to a file that can be imported later? or is there one that i'm missing? I have a custom toolbar and any time I log in to a different computer where I have to install firefox again...I would rather have an import function for all my settings/toolbars

Asked by Tim Budoff, JR 6 days ago

Firefox won't open

I starting having trouble getting Firefox to open last week on a win 10 PC. I could only open a window if I ran as administrator. If I got a window open, then it would no… (read more)

I starting having trouble getting Firefox to open last week on a win 10 PC. I could only open a window if I ran as administrator. If I got a window open, then it would not go to any website I tried. I thought it was issues with my PC because it is old and I was having other issues as well. I got a new Win 11 PC and fire fox opened when I first downloaded it but now, I can't get it to open again. It is my preferred browser of choice. Any help on this? TIA, Stephanie

Asked by stephaniemolsbee 6 days ago

Getting update your browser messages when my browser IS updated.

I have the updated version of Firefox but when I go to either Facebook or Instagram pages, I get a message saying "This version is no longer supported, please upgrade you… (read more)

I have the updated version of Firefox but when I go to either Facebook or Instagram pages, I get a message saying "This version is no longer supported, please upgrade your browser." How can I fix this?

Asked by Richard Stenz 6 days ago

ctrl+shift+o hotkey for bookmarks?

so i need that "ctrl+shift+o" hotkey for my amd adrenaline. i tried googling on how to turn off/change hotkeys for firefox but i couldnt find anything that helps me find … (read more)

so i need that "ctrl+shift+o" hotkey for my amd adrenaline. i tried googling on how to turn off/change hotkeys for firefox but i couldnt find anything that helps me find this hotkey setting.

Asked by STERBEN_BLADE 2 weeks ago

Last reply by STERBEN_BLADE 6 days ago