Croppic,调整图像大小低于容器大小
Croppic, resizing images below container size
Croppic 库 (http://www.croppic.net/) 不支持将图像缩放到容器大小以下。但是,这可以通过修改库文件中的 zoom() 函数来解决:
https://github.com/sconsult/croppic/issues/100
我已尝试使用本期中的信息以各种方式执行此操作,但没有任何效果。我做错了什么,我不知道是什么。
示例:
https://github.com/rudolphreti/croppic_example/
示例来自 github 在线:
https://srv19859.microhost.com.pl/croppic_example/
我认为该主题已关闭。我将使用图书馆:https://fengyuanchen.github.io/cropperjs/
在此示例中,我的问题已解决:
https://fengyuanchen.github.io/cropperjs/examples/fixed-crop-box.html
Croppic 库 (http://www.croppic.net/) 不支持将图像缩放到容器大小以下。但是,这可以通过修改库文件中的 zoom() 函数来解决: https://github.com/sconsult/croppic/issues/100
我已尝试使用本期中的信息以各种方式执行此操作,但没有任何效果。我做错了什么,我不知道是什么。
示例: https://github.com/rudolphreti/croppic_example/
示例来自 github 在线: https://srv19859.microhost.com.pl/croppic_example/
我认为该主题已关闭。我将使用图书馆:https://fengyuanchen.github.io/cropperjs/
在此示例中,我的问题已解决: https://fengyuanchen.github.io/cropperjs/examples/fixed-crop-box.html