git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] gitweb: Avoid overflowing page body frame with large images

From
Andrew Keller <andrew@kellerfarm.com>
Date
Feb 7, 2014, 14:32 UTC
Message-ID
<85BCA9A4-5EC3-4488-A4E4-4F86739B6450@kellerfarm.com>
In-Reply-To
<CAAH6HY92SGAjMMcrw_HwA_Uh_3=AWFFF9K9WAnNAPcyUpDkbwQ@mail.gmail.com>
On Feb 7, 2014, at 7:35 AM, Vincent van Ravesteijn <vfr@lyx.org> wrote:
Show 10 quoted lines
> On Fri, Feb 7, 2014 at 4:31 AM, Andrew Keller <andrew@kellerfarm.com> wrote:
>> I recently used Git to archive a set of scanned photos, and I used gitweb to provide access to them.  Overall, everything worked well, but I found it undesirable that I had to zoom out in my browser on every photo to see the whole photo.  In the spirit of making the default behavior the most likely correct behavior, this patch seems to be a good idea.
>> 
>> However, I'm not an expert on the use cases of gitweb.  In order for the maximum size constraints to take effect, the image would have to be at least the size of the web browser window (minus a handful of pixels), so the affected images are usually going to be pretty big.  Are there any common use cases for displaying a large image without scaling (and hence, with scrolling)?
>> 
>> Thanks,
>> Andrew
>> 
> 
> It sounds like your usecase is exactly what camlistore.org tries to achieve.
Yes.
With that said, I don't think it's unreasonable for a software project to contain images larger than a browser window.  And, when that happens, I'm pretty confident that the default behavior should be to scale the image down so the user can see the whole thing.
 - Andrew
Previous: Vincent van RavesteijnNext: Tony Finch
Message 6 of 7 in “gitweb: Avoid overflowing page body frame with large images”
  1. gitweb: Avoid overflowing page body frame with large imagesAndrew Keller, Feb 7, 2014
  2. Andrew KellerFeb 7, 2014
  3. gitweb: Avoid overflowing page body frame with large imagesAndrew Keller, Feb 17, 2014
  4. Junio C HamanoFeb 19, 2014
  5. Vincent van RavesteijnFeb 7, 2014
  6. Andrew KellerFeb 7, 2014
  7. Tony FinchFeb 7, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.