Code Monkey home page Code Monkey logo

fractalsfromimages's Introduction

Fractals From Images

Description

This repo was created to fix a website I came upon malinc.se/m/ImageFractals.php. The website claims to take images and turn them into fractals using both the Mandelbrot and Julia set. I thought this was interesting however found the website did not work. Upon inspection there are many console errors that appear so I decided to try and fix it.

After removing a bunch of unncessary HTML and keeping only essential files found in the sources tab of the developers console it works very well.

Usage

To run this website locally you must have a way to run the PHP server. I did this in WSL using the PHP-CLI which can be installed by doing.

sudo apt install php-cli

Then run in the root directory of the repo

php -S localhost:8000

Go to your browser and type in http://localhost:8000/ImageFractals.php

The website is intutive to use from there. While the code does try to convert an image into a square it does so by cropping instead of scaling. Therfore I recommend either manually scaling your photos or using a square photo onhand. I found a 900x900px photo to be the best.

Credits

The original author of all the code and the original website is Malin Christersson, who I believe is/was a professor at Lund University in Sweden. I could not find any contact information however, here is their latest website, which seems to have not been updated since 2015.

fractalsfromimages's People

Contributors

srblank avatar

Watchers

 avatar

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.