Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple calls to the image url #763

Closed
atabordacmg opened this issue Dec 11, 2020 · 3 comments
Closed

Multiple calls to the image url #763

atabordacmg opened this issue Dec 11, 2020 · 3 comments

Comments

@atabordacmg
Copy link

Describe the bug
When a Cropper instance is initialized, multiple calls are made to the image endpoint

To Reproduce
Steps to reproduce the behavior:

  1. Create a new instance of Cropper
  2. Go to browser
  3. Go to Network
  4. See the multiples calls to the url

Expected behavior
When a Cropper instance is initialized, the image enpoint should be called only once

Screenshots
image
image
image

Additional context

  • Angular 6 front end
  • .net WebApi endpoint
@atabordacmg atabordacmg changed the title Múltiples llamadas a la url de la imagen Multiple calls to the image url Dec 11, 2020
@fengyuanchen
Copy link
Owner

fengyuanchen commented Dec 12, 2020

It is designed like this, for each Cropper instance, there are several image requests will be sent:

  • One for the source image.
  • One for the Exif Orientation reading when the checkOrientation option is enabled and the image is a JPEG image.
  • One for viewing in the crop box.
  • More others for previewing when the preview option is configured.

@fengyuanchen fengyuanchen pinned this issue Dec 12, 2020
@atabordacmg
Copy link
Author

Thanks for the quick reply!

Cheers!

@naftali100
Copy link

It is designed like this, for each Cropper instance, there are several image requests will be sent:

  • One for the source image.
  • One for the Exif Orientation reading when the checkOrientation option is enabled and the image is a JPEG image.
  • One for viewing in the crop box.
  • More others for previewing when the preview option is configured.

there is no way to use the image from the first request to do all of this? why it's have to be a different requests?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants