PHP的马赛克脚本 [英] php mosaic script

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

问题描述

我正在使用从Google代码下载的脚本来通过GD库动态生成镶嵌图像.该脚本似乎有点令人费解.我已经把它弄乱了很多,但是由于它是用德语写的,所以我有点困惑,而且我不会讲德语.我知道,要使其正常工作,我需要拥有121张不同的图像.但是,我不确定它们是否需要在目录中或在mysql中.有没有人知道如何使用此功能?还是有人对使用GD GD库生成马赛克图像的更好脚本有一些建议?

I'm using a script that I downloaded from google code to dynamically generate mosaic images with the GD library. The script seems a bit convoluted. I've messed around with it quite a bit, but I'm sort of confused since it's written in German and I don't speak deutsch. I know that in order for it to work, I need to have 121 different images. But, I'm not sure if they needs to be in the directory or in mysql. Does anyone have a clue as to how to use this? Or does anyone have some suggestions for a better script for generating mosaic images with the php GD library?

可以在以下位置找到该脚本: http://code.google.com/p/phpmosaic/

The script can be found here: http://code.google.com/p/phpmosaic/

谢谢

兰斯

推荐答案

您要用作缩略图的图像必须位于目录内.您必须使用方法将它们添加到数据库中

The images you like to use as thumbnails have to be inside a directory. You must add them to the db using the methods

  • phpMosaicImageParser :: parseImageFolder()或
  • phpMosaicImageParser :: parseImage()

但是:没有固定数量的所需缩略图,这取决于SourceImage和使用的选项,您至少需要多少缩略图.

However: there is no fix number of required thumbnails, it will depend on the SourceImage and the used options how much thumbnails you'll need at least.

这篇关于PHP的马赛克脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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