有关图像处理的问题 [英] question regarding image processing

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

问题描述




我不确定这是否是正确的群体。我正在开发一个

的小图像库,我不知道如何隐藏图像的实际路径

。所以我去图片库网站看看他们如何隐藏他们的图像。这是我从gettyimages.com看到的


< img src =" http://cache2.asset-cache.net/xc/200186170-001.jpg?

v = 1& amp; c = NewsMaker& amp; k = 2& amp; d = 1EF4EE1EFB3A2CD3 E55FD7668143826B10621193DB58D674"

id =" ctl12_ctlComp_imgThumb" class =" thumbHeight">


有人可以解释为什么.jpg之后有参数,

这不是可执行文件?我通过右键单击获得了链接,并且

查看图像属性。但是,如果我只是复制链接,并将

粘贴到一个新窗口,我就不会看到图像了。


任何人都知道什么技术是这个吗?


谢谢。

DP。

Hi,

I''m not sure if this is the right group to ask. I am developing a
small image library and I don''t know how to hide the actual path to
the image. So I go to the stock photo library websites to see how they
hide their images. This is what I see from gettyimages.com

<img src="http://cache2.asset-cache.net/xc/200186170-001.jpg?
v=1&amp;c=NewsMaker&amp;k=2&amp;d=1EF4EE1EFB3A2CD3 E55FD7668143826B10621193DB58D674"
id="ctl12_ctlComp_imgThumb" class="thumbHeight">

Can someone please explain why there are parameters after the ".jpg",
which is not an executable file? I''ve got the link by right-click and
view image properties. However, if I just copy the link, and paste
into a new window, I won''t see the image.

Any one knows what technique is this?

Thank you.
DP.

推荐答案

。 .oO(DP)
..oO(DP)

>我不确定这是否是正确的群组。我正在开发一个
小图像库,我不知道如何隐藏图像的实际路径。所以我去图片库网站看他们如何隐藏他们的图片。这是我从gettyimages.com看到的

< img src =" http://cache2.asset-cache.net/xc/200186170-001.jpg?
v = 1& amp; c = NewsMaker& amp; k = 2& amp; d = 1EF4EE1EFB3A2CD 3E55FD7668143826B10621193DB58D674
id =" ctl12_ctlComp_imgThumb" class =" thumbHeight">

有人可以解释为什么在.jpg之后有参数,
这不是一个可执行文件?我通过右键单击并查看图像属性来获取链接。但是,如果我只是复制链接,并将
粘贴到一个新窗口,我就不会看到图像了。
>I''m not sure if this is the right group to ask. I am developing a
small image library and I don''t know how to hide the actual path to
the image. So I go to the stock photo library websites to see how they
hide their images. This is what I see from gettyimages.com

<img src="http://cache2.asset-cache.net/xc/200186170-001.jpg?
v=1&amp;c=NewsMaker&amp;k=2&amp;d=1EF4EE1EFB3A2CD 3E55FD7668143826B10621193DB58D674"
id="ctl12_ctlComp_imgThumb" class="thumbHeight">

Can someone please explain why there are parameters after the ".jpg",
which is not an executable file? I''ve got the link by right-click and
view image properties. However, if I just copy the link, and paste
into a new window, I won''t see the image.



简单复制&粘贴不起作用,因为链接包含HTML所需的字符

引用(& amp;)。试试这个以获得

图像:

http://cache2.asset-cache.net/xc/200...621193DB58D674


>任何人都知道这是什么技术?
>Any one knows what technique is this?



只是因为你在URL中看到一个.jpg并不一定意味着它是一个

图像。它可以是其他任何东西,在这种情况下它可能是一个脚本,

根据传递的参数返回一个图像。


请记住:一个URL只是一个字符串,仅此而已。诸如目录之类的东西

或文件扩展名等那里没有真正的意义。服务器决定如何处理像.jpg这样的东西,这完全是

。最后。


Micha

Just because you see a .jpg in the URL doesn''t necessarily mean it is an
image. It can be anything else, in this case it could be a script that
returns an image based on the passed parameters.

Remember: a URL is just a string, nothing more. Things like "directory"
or "file extension" don''t have a real meaning there. It''s completely up
to server to decide what to do with something like ".jpg" at the end.

Micha


5月20日23:47,DP< ldpha ... @ gmail。 comwrote:
On 20 May, 23:47, DP <ldpha...@gmail.comwrote:




我不确定这是否是正确的群体。我正在开发一个

的小图像库,我不知道如何隐藏图像的实际路径

。所以我去图片库网站看看他们如何隐藏他们的图像。这是我从gettyimages.com看到的
Hi,

I''m not sure if this is the right group to ask. I am developing a
small image library and I don''t know how to hide the actual path to
the image. So I go to the stock photo library websites to see how they
hide their images. This is what I see from gettyimages.com



我不知道你在这里做了什么。隐藏图像的路径

与隐藏图像不同。如果你隐藏一个图像,没有人可以看到它。如果你允许某人看到它(在他们的浏览器上),他们就已经在他们的机器上有了这个图像,在这种情况下,没有

点隐藏路径" ;.我有时会将图像存储在数据库中,因为没有路径。如此。


如果你希望人们能够在他们的浏览器上看到你的图像,但

不能保留他们的副本,请忘记它。最近有一个很长的

讨论。最重要的是,你可以做的唯一一件事就是阻止人们在他们的机器上有一个有用的副本是

在图片上加上水印。

I''m not sure what you''re after doing here. Hiding the path to an image
is not the same thing as hiding an image. If you hide an image, no one
can see it. If you allow someone to see it (on their browser), they
already have the image on their machine, in which case there is no
point in hiding the "path". I sometimes store images in a database
table, so there is no "path" as such.

If you want people to be able to see your images on their browser but
not to be able to keep a copy of them, forget it. There was a long
discussion about this recently. The bottom line is that the only thing
you can do to stop folks having a useful copy on their machine is to
put a watermark on the pictures.


感谢Michael&队长。我知道Apache httpd.conf可以设置为

执行任何扩展(我只知道事实)。我只是不知道

他们使用什么技术来返回图像。我有一些假设,

但不知道哪一个是最好的:


1.''''''是一个可执行的脚本,它从文件系统中的原始图像文件中读取图像数据

,添加水印和输出。

或者它可以从水印图像中读取数据(水印图像是

从上传时间创建)。那么如果我需要在一个页面中显示50

图像会怎样?脚本只能逐个处理。


2.图像(可能是水印图像和缩略图)存储在

数据库中。该脚本只返回数据。我不喜欢这种方法

,因为如果我有成千上万的图像,数据库是

可能不是一个好的选择(来自关于存储图像的一些讨论


Thanks Michael & Captain. I know that Apache httpd.conf can be set to
execute any extension (I just know the fact). I just don''t know that
they use what technique to return the image. I have a few assumptions,
but don''t know which one is best:

1. the ''.jpg'' is an executable script, and it reads the image data
from original image file in file system, adds watermark, and outputs.
Or it can read data from watermarked image (watermarked image is
created from upload time). Then what happens if I need to display 50
images in one page? the script only processes one by one.

2. Images (and maybe watermarked images & thumbnails) are stored in
database. The script just returns data. I don''t like this approach
because if I have hundreds of thousands of images, database is
probably not a good choice (from some discussions about storing images
in db vs. file system)


这篇关于有关图像处理的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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