Aurigma 文件上传器 php 如何以正确的比例调整拇指大小
我正在使用 aurigma 商业多文件上传器和裁剪器。
我正在尝试上传各种宽高比和尺寸的图像。
我希望它们适合 140*140 像素的盒子。
如果高度是图像的最小属性,我希望宽度为 140 像素,反之亦然。
允许重叠。
我浏览了官方网站和文档,但不明白如何做到这一点。
为了澄清图像是否为 100 * 50 像素,我希望将其大小调整为 210 * 140 或者 50*100 的图像应该是 140 * 210。
我没有上传任何代码,因为我使用的代码在主站点上可用,并且我没有添加任何具体内容。
www.aurigma.com/
I am using aurigma a commercial multi file uploader and cropper.
I am tring to upload images of various aspect ratios and sizes.
I want them to fit into boxes that are 140*140 pixels.
If the height is the smallest attribut of the image I want that to be 140 pixels or vice versa on the width.
Overlap are allowed.
I have looked through the official site and documentation but cannot understand how to do this.
To clarify if an image is 100 * 50 pixels I want it resized to 210 * 140
or an image that is 50*100 should be 140 * 210.
I haven't uploaded any code as the code I have used is available on the main site and I have added nothing specific.
www.aurigma.com/
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否尝试过使用OrientationalFit?
它的工作方式类似于“适合”模式,但对缩略图方向进行了修正。
结果:
关于您的样本,还有一件事。图像上传器不能用于放大,即缩略图不能大于源图像。这是设计使然。
Did you try to use OrientationalFit?
It works like a Fit mode but with correction on thumbnail orientation.
Results:
And one more thing about you sample. Image Uploader cannot be used for upsizing, i.e. thumbnail cannot be larger than source image. This is by design.