8000 Cannot resize it · Issue #108 · dominictobias/react-image-crop · GitHub
[go: up one dir, main page]

Skip to content
Dismiss alert

Cannot resize it #108

Closed
Closed

Description

@barbu110

It would be very useful to be able to size the component the way you need it, like if you load a 16:9 image, specify a width of 800px and that's it. Currently, the interface will expand the whatever the image size is which is not quite ok.

note There is an expensive workaround to this that I can think of, resize the image in-browser and create the blob URL for it afterwards.

Any other suggestions?

Activity

  1. added 2 commits that reference this issue on Aug 10, 2017
  2. dominictobias commented on Aug 10, 2017

    @dominictobias
    Owner

    Hi the intention is that you limit the crop from the container, and allow the crop to expand up to that:

    <div style="width: 500px"><ReactCrop .../></div>
    

    This container could be limited by other things e.g. a percentage or flexbox etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0