Giter Site home page Giter Site logo

mosaic-generator's Issues

customize image in background

How i can define my own image (background) to generate Mosaic image. I need to generate image mosaic in a kid face, what modification i need to work on this library ? I have tried this in my local and getting too much time to render , can you suggest me the best way to use this ? Your feedback appreciated ,

Limits and Efficiency

Hi,

This is very interesting!

I have 2 questions:

  1. Is there a limit to the number of images that can be used for the mosaic, can you use it for 1 million images 1000x1000 grid?
  2. How much time did it take to process the 10k mosaic from the example and on what machine specs?

I am interested in using and improving on this.

Thank you a bunch!

Not a Multiple

Iam get this error on PHP

: Got error 'PHP message: PHP Fatal error: Uncaught Exception: 1272 not a multiple of 1600 in /home/defaultwebsite/public/inc/Mosaic.php:69\nStack trace:\n#0 /home/defaultwebsite/public/inc/Mosaic.php(43): Mosaic->prepare()\n#1 /home/defaultwebsite/public/test.php(11): Mosaic->__construct('/home/defaultwe...', 1920, 1272, true)\n#2 {main}\n thrown in /home/defaultwebsite/public/inc/Mosaic.php on line 69'

My test file code:

include_once('inc/Mosaic.php');

ini_set('max_execution_time', '20000');
ini_set('memory_limit',       '1000M');

$input_filename = HD.'upload/6440167340712_foto_1.jpeg';

//function __construct($input_filename, $rows, $columns, $gen_thumbs = true)
$out = new Mosaic($input_filename, 1920, 1272 , true);

print($out);

what to do? Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.