缩小 gif 的尺寸作为动画的一部分
尝试找出是否可以“缩小”GIF 动画。不是文件大小,而是图像的尺寸。
如果没有,有什么方法可以用 jquery/javascript 捕捉动画,这样我就可以用 css 缩小将图像移出视图的尺寸?
或者是否有任何库可以为 HTML5 Canvas 提供简单的图像处理类型内容?
编辑: 该图像的第一个模型位于 http://swmohappening.info/。这本质上是我为了帮助当地青年团体静修而做的一个网站。
我想缩小连续的字母部分,这样它就成为留在页面上的更易于管理的横幅。我确实需要保持图像中心/主要部分的尺寸。
Trying to find out if it's possible to 'shrink' an animated gif. Not in file size but in regard to the dimensions of the image.
If not, is there any way to catch the animation with jquery/javascript so I can shrink the size my moving the image out of view with css?
Or alternately after there any libraries out there for simple image manipulation type stuff for HTML5 Canvas?
EDIT:
The first mock up of the image is at http://swmohappening.info/. It's essentially a website that I'm doing to help out a local youth group retreat.
I'm wanting to shrink the portion of the letters that run-on so it's a more manageable banner to leave on the page. I do need to maintain the dimensions of the center/main section of the image.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
看一下 jQuery 中的 animate 函数 - 您可以更改图像的大小并指定时间这也需要。
Take a look at the animate function in jQuery - you can change the size of an image and specify the time that takes too.
正如我所读到的,jquery animate 似乎只会改变图像的尺寸(这不是目前所需要的)。我想我很可能最终会使用动画将图像移出视图,以这种方式“缩小”它......
As what I've read makes it seem as though the jquery animate will simply change the dimensions of an image (which isn't what is needed at the moment). I think I'll most likely end up using animate to move the image out of view to 'shrink' it that way...