Show whole of image on screen in any orientation


Question

I'm using Firefox version 44.0.2 on the Galaxy Note 4. I cannot zoom out enough to view the whole of images on the screen - so I have to scroll to get a glimpse.



It seems the image is zoomed to fit the height of the phone in portrait mode and zoomed to the width with the phone in landscape mode. End result is I cannot ever see the whole image at once.



For testing I used this image.



Attempted solutions:




  • I have tried to change a few of the zoom-settings such as browser.zoom.full, toolkit.zoomManager.zoomValues, and zoom.minPercent in about:config, to no avail.

  • I have also tried disabling all add-ons.

  • With an image (example) with 16/9 aspect ratio and the add-on "Full screen mobile", I can actually see the whole image.



So how to make it show the whole image on the screen, no matter how you hold the phone?



In general it would be nice to have kind of indefinite zoom in and zoom out on all content on the web - both images and web pages.


Answer

Looking to do this?


(Click image to enlarge)


IMG:


Perhaps this?


IMG:


Turned out that the config browser.enable_automatic_image_resizing controls the behavior you want to change.



  • True: When viewing an image not in a web page, the image will be resized to fit in the browser window if it is too large for the browser window.

  • False (default in Firefox for Android): Images are always shown in their real size.


Toggle that setting to true in config editor.


For users new to the Firefox config entries: type about:config in URL bar, agree for whatever it asks for, type browser.enable_automatic_image_resizing in search field and toggle the entry to true.


There is more here. You can search for the config entry browser.enable_click_image_resizing. Toggle it. Now, the effects are identical to previous config entry except that whenever you would single tap on the image, its original size would load. When you tap on original size, the image will be re-sized to fit the page width. Convenient, I suppose.


One more. The config entry layout.css.devPixelsPerPx can also achieve what the first config entry can, but it requires efforts to pin pinpoint the value specific to your device and it would mess up with view of your pages. Nonetheless, it can do the job.


Note: Tested on Firefox for Android v44.0.2


Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes