GithubHelp home page GithubHelp logo

Cropping large images about croppic HOT 6 CLOSED

katmaha avatar katmaha commented on August 25, 2024
Cropping large images

from croppic.

Comments (6)

sconsult avatar sconsult commented on August 25, 2024

Will look into this issue, if you could provide a link with an example picture you try to crop it would help our test team.
Mat

from croppic.

mathfrick avatar mathfrick commented on August 25, 2024

I need help too! is it possible to create a small div with the same ratio as the large file avec crop it ...

from croppic.

sconsult avatar sconsult commented on August 25, 2024

An untested solution could be as follwed

you can set the attributes for the crop container also as followed:

$('#cropContainerModal').css({"width":"{}px",
"height":"{
}px",
"border":"1px solid #ccc",
"position":"absolute",
"top":"0",
"bottom":"0",
"left":"0",
"right":"0",
"margin":"auto"});

});

so what you could do is to implement within croppic, after the file is loaded, you get the dimensions width and height from the image, then scale it down to your desired size, and set the css new with the code sample above.

you find the following code in croppic for the height and width.

that.imgInitW = that.imgW = response.width;
that.imgInitH = that.imgH = response.height;

from croppic.

musaddiq-pk avatar musaddiq-pk commented on August 25, 2024

I m having problem to crop large image on my site.
Here is my web url https://www.furniturenation.com/croppic/.
The image I've tried to upload is attached below.

abc

from croppic.

sconsult avatar sconsult commented on August 25, 2024

i just checked your site, looks ok to me. Is there still an issue.
test

from croppic.

sconsult avatar sconsult commented on August 25, 2024

no feedback received. closing issue.

from croppic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.