php mosaic script

房东的猫 提交于 2019-12-08 12:15:51

问题


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?

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

Thanks,

Lance


回答1:


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() or
  • phpMosaicImageParser::parseImage()

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.



来源:https://stackoverflow.com/questions/6602314/php-mosaic-script

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!