1

How can I improve the experience for the uploader & viewer when dealing with a horizontal container and a vertical image (uploaded by a user)?

I would like to avoid scaling and centering the vertical image into the horizontal container as:

  • the image can end up appearing very small
  • the side gaps are unattractive

enter image description here

4
  • 2
    I think you're trying to find a way to get a square peg to fit a round hole here. I doubt you'll be able to change the end result of how it displays, but you can add some help for the user when they're trying to upload it in the first place to let them know what their upload will actually look like should they proceed (previews, that sort of thing).
    – JonW
    Commented May 2, 2014 at 8:19
  • Logically the only options you have are: 1. Zoom the vertical image maxing its width to the viewspace, centering it vertically (in which case you will not be able to see its top or bottom) or 2. Vertical images get a vertical viewspace.
    – SW4
    Commented May 2, 2014 at 8:53
  • Another option is to provide the user the ability to crop the image or move the image around the container.
    – Jackson
    Commented May 2, 2014 at 8:56
  • Why should the container remain horizontal ? Commented May 3, 2014 at 6:56

3 Answers 3

1

If it's a strict requirement to have horisontal-oriented container, your primary task is to make it understandable for users. You can notice how others cope with this issue:

  • Navigator panel in photo editing software, which contains both the entire image preview and restricted area, see red rectangle:
    enter image description here
  • Navigator panel in maps (at left bottom corner): enter image description here

You can find a lot of examples, where the close problem is solved.

My suggestion is to use a signifier which conveys the idea of a) image is in a portrait mode, and b) image position could be adjusted (if needed). See possible solution:
enter image description here

0

As noted in the comments, you are limited in what you can practically implement because you are fighting to fit an image of x dimensions into a viewport of y dimensions.

As I see it, your options are:

  1. Load images into the viewport, centre vertically and horizontally, if one of their dimensions is less than the equivalent for the viewport, zoom the image to stretch. Also then provide panning(/zooming) functionality, such as a thumbnail the user can move over to pan the main image (think the same as a lot of clothing outlets)

  2. Orient the viewport appropriately for the image, vertical for vertical images, horizontal for horizontal ones etc.

Personally, if you want consistent viewport dimensions, I'd go for 1 - providing a thumbnail so users can see the whole image, then allocating the rest of the space for a zoomed (or 100%) pannable version.

0

Answering the UX side of the question, rather than the technical way to upload images, photographers often refer to the "long edge" side of a photograph, as we're not dealing with square images here, looking at your wire frames, some instruction text with imagery would be the best way to inform your users of the ideal size for uploaded images.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.