许多jpeg成单个jpeg [英] Many jpegs into single jpeg

查看:117
本文介绍了许多jpeg成单个jpeg的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,我希望有人能帮助我...

我正在编写一个程序来创建我的独特密码,但是遇到了一个令人讨厌的障碍.我正在尝试将字母转换为我的硬盘驱动器上具有的相应jpeg文件.我的问题有两个.

1:我不知道将图像放入Microsoft Word文档的视觉基本编码. (我正在使用Microsoft Office 2007学生版随附的VB 6.5)

2:我要使其备份单个图像而不是可变的多jpeg文档(文档本身将由多个jpeg组成以进行反向转换).有办法吗?

我将不胜感激提供的任何帮助.

Hello, I hope someone can help me...

I am writing a program to create a unique cypher of mine, but I have hit a rather nasty snag. I am trying to convert the letters into corresponding jpeg files I have on my hard-drive. The problem I have is two fold.

1: I do not know the visual basic coding to put images into a microsoft word document. (I am using VB 6.5 that came with the student version of microsoft office 2007)

2: I want to make it a back up of a single image instead of an alterable multi-jpeg document (the document itself will be made up of multiple jpegs for reverse conversion). Is there a way to do this?

I will greatly appreciate any help that is given.

推荐答案

您可以使用数字水印 [ ^ ]作为研究的起点您的问题是,将安全信息嵌入图像是您发现的高级"主题.您可能会发现jpeg不是最简单的格式,因为它不是无损的,请尝试png.

您可能会发现,迁移到.Net将使开发阶段更容易,因此避免某些痛苦"的升级到 VisualStudio®2010 Express [^ ]-您"将可以访问.Net框架,该框架比VB 6.5丰富得多.

2007 Microsoft Office System更新:可重新分发的主互操作程序集 [ ^ ]允许您使用Word和其他Office应用程序.

现在,.Net提供了相当丰富的api用于处理图形,包括png文件或jpeg(如果要使用该格式).请参阅 System.Drawing.Graphics [System.Drawing.Bitmap [
You can use Digital watermarking[^] as a starting point for researching you problem, embedding secure information in images is, as you will discover, an "advanced" topic. You''ll probably find that jpeg isn''t the easiest format to use for this purpose - since it''s not lossless, try png instead.

You''ll probably find that moving to .Net will make the development phase easier, so to avoid some of the "pain" upgrade to Visual Studio® 2010 Express[^] - You''ll have access to the .Net framework, a far richer environment that VB 6.5.

2007 Microsoft Office System Update: Redistributable Primary Interop Assemblies[^] allows you to work with Word and the other office applications.

Now .Net provides a fairly rich api for working with graphics, including png files, or jpeg if you want to use that format. See System.Drawing.Graphics[^] and System.Drawing.Bitmap[^]

As OriginalGriff points out, OCR software can easily convert images to text - but I''ll not say that it''s a worthless effort, it depends on what you are going to use it for.

If you are serious about this - you have a lot of reading to do.

Regards
Espen Harlinn


此密码完全浪费您的时间和精力.请放弃您的工作,而专注于更有价值的事情.

1)它是一个替换密码.不管您使用图像代替字符是什么事实,它都可能在几乎没有时间的情况下被十岁的孩子打破.安全?实际上没有.
2)您是否认为使用图像代替文本可以提高您的安全性?我的硬盘上有免费软件,该软件可用于从相机存储卡中恢复图像.它查看卡上的所有原始数据,找出可能是图像的图像,然后将它们提取到有序列表中.有用.我怀疑将它送入您的Word文档,它也将提取图像.
3)不仅仅是图像大小,这是一个愚蠢的主意:Word还在插入的每张图片周围添加了自己的填充"层,以告知其放置位置,框架的外观例如,如何将文本环绕在文本上,等等.等等.用883字节1/4"x 1/4" jpeg进行的快速测试显示,添加到Word文档中的每个文件都会使文件大小增加1.5K.因此,输入数据中的每个字符"都需要1,500个字节以低安全性格式存储...

这真的不值得做:使用内置的.NET安全性(请参见
系统.Security.Cryptography命名空间 [ ^ ].这些都是安全性高,经过验证的方法,比您的密码更容易使用,并且产生的结果更好,更小.
This cypher is a complete waste of your time, and effort. Please, abandon your efforts on this, and concentrate on something more worthwhile.

1) It is a substitution cypher. Regardless of the fact that you are using images to substitute for characters, it could be broken by a ten year old in almost no time at all. Security? None in practical terms.
2) Do you rally think that using images instead of text improves your security? I have free software on my HDD, that is for recovering images from Camera memory cards. It looks at all the raw data on the card, and works out what might be an image, and extracts them into an ordered list. It works. Feed it your Word document, and it will extract the images just as well, I suspect.
3) It is not just the image size that makes this a silly idea: Word also adds on it''s own layer of "stuff" around each picture you insert, to tell it where it is to be placed, what the frame looks like, how text should wrap round it, etc., etc. Some quick testing with a 883 byte 1/4" x 1/4" jpeg showed that each file added to a word document increased the file size by 1.5K. So each "character" in your input data takes 1,500 bytes to store in a low security format...

It really isn''t worth doing: use the .NET built in security (see the System.Security.Cryptography namespace[^] for details. These are high security, proven methods which are easier to use, and produce a better, smaller result than your cypher.


这篇关于许多jpeg成单个jpeg的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆