问题描述
有人知道如何使用JavaScript将图片分成多块吗?我需要将该图片加密和解密,以使黑客在获取信息时遇到问题,
有什么方法可以将图像默认分割为不均匀的形状?由于安全原因,就像拼图游戏一样,我在此上做一个项目.例如:一个随机图像,通过代码分成许多部分,并且大小必须是不均匀的,例如较大的正方形和较小的正方形,这样黑客就更难将碎片放回原处.
http://www.google.com.sg/imgres?q=split+image+into+tiles&um=1&hl=zh-CN&sa=N&biw=1680&bih=949&tbm=isch&tbnid=mm-8EYBUItGF-M:&imgrefurl=https://wiki. openmrs.org/display/docs/Google%2BMaps%2BImage%2BViewer%2BModule&docid=s7uskvnQ0eQ2HM&imgurl=https://wiki.openmrs.org/download/attachments/3346707/Googlemaps-heterochromiacat_2.jpg%253Fversion%253D1%2526ification 384&h = 288&ei = BbBeT5SXO6utiQeeqY3cBw&zoom = 1&iact = rc&dur = 238&sig = 118284517343590822152&page = 2&tbnh = 142&tbnw = 189&start = 40&ndsp = 48&ved = 1t:429,r:22,s:40&tx
〜
一个例子,但是正方形大小不同,更大或更小(必须通过编码来做到这一点)吗?
谢谢〜
一个例子,但是正方形大小不同,更大或更小(必须通过编码来做到这一点)吗?
谢谢〜
Hi, anyone knows how to split an image into pieces, using javascript? I need to encrypt and decrypt that picture into pieces so that hacker will have a problem getting the information,
is there any way to split the image by default to uneven shape? like a jig-saw puzzle form, due to security reasons, as I doing a project on that. Example: a random image, split into many parts via code, and the size must be uneven, like bigger square and smaller square, so that it will be harder for hacker to put back the pieces as one.
http://www.google.com.sg/imgres?q=split+image+into+tiles&um=1&hl=en&sa=N&biw=1680&bih=949&tbm=isch&tbnid=mm-8EYBUItGF-M:&imgrefurl=https://wiki.openmrs.org/display/docs/Google%2BMaps%2BImage%2BViewer%2BModule&docid=s7uskvnQ0eQ2HM&imgurl=https://wiki.openmrs.org/download/attachments/3346707/Googlemaps-heterochromiacat_2.jpg%253Fversion%253D1%2526modificationDate%253D1282171110000&w=384&h=288&ei=BbBeT5SXO6utiQeeqY3cBw&zoom=1&iact=rc&dur=238&sig=118284517343590822152&page=2&tbnh=142&tbnw=189&start=40&ndsp=48&ved=1t:429,r:22,s:40&tx=155&ty=94
~
an example, but the squares are of different size, larger/smaller, (have to do this by coding) do you know to do?
thanks~
an example, but the squares are of different size, larger/smaller, (have to do this by coding) do you know to do?
thanks~
推荐答案
这篇关于将图像分割成不均匀的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!