GithubHelp home page GithubHelp logo

kristopolous / apophnia Goto Github PK

View Code? Open in Web Editor NEW
20.0 20.0 4.0 2.42 MB

Image server

Home Page: http://9ol.es/apophnia

License: MIT License

C 93.40% C++ 6.15% JavaScript 0.06% CSS 0.03% Perl 0.35% PHP 0.01% Shell 0.01%

apophnia's People

Contributors

argan avatar benalavi avatar kristopolous avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

apophnia's Issues

matte/seamcarve isn't supported.

Thanks for apophnia.

i had no idea how to install from source & git.
Even without install instructions i guess i got it installed correctly on my debian vserver after googleing a lot using:

apt-get install imagemagick
apt-get install libmagickwand-dev
apt-get git-core
git clone git://github.com/kristopolous/apophnia
cd apophnia
make
make install
cd sample
./create-sample.sh
apophnia

If i call http://mydomain.com:1210/example.png it works. Also with resize parameters.
But if i call http://mydomain.com:1210/index.html only a broken image icon will be shown!?
Should it be this way?

I have also two questions:

  1. Is it possible instead the special port number to use a subdomain of my domain on port 80? like images.mydomain.com
  2. How can i get your tool starting with the server and running all the time? I guess there is something to put into /etc/init.d/. But there is no apophnia.sh for this!?

Lutz

KeepRatio option

Hi!

I have an idea of a new feature. I would like to achive this scenario:

I have a file with resoltuion 400x800 (px) f.ex. test.jpg. I would like to make a request to apophnia that will keep the ratio of a file, here's the example:

k - keep ratio

request: test_k300x400.jpg
expected: test.jpg with resolution 200x400

request: test_k100x50
expected: test.jpg with resolution 25x50

File: test.jpg with 300x200
request: test_k300x400.jpg
expected: test.jpg with resolution 300x200

request: test_k100x50
expected: test.jpg with resolution 75x50

File: test.jpg with 60x20
request: test_k300x400.jpg
expected: test.jpg with resolution 300x100 - it can be bigger... I dont care here

It will always keep the ratio. If an image is bigger than the request, then apophenia will response with smaller but it will keep the ratio so it wont go beyond the scope of request resolution.

Reason:
I upload many images to apophenia and want them to fit into some box. F.ex list of items in a shop.

What you think? the parametr letter can be different its only an example

Regards
R.

Jpg Black background and minimize request

Hi,

I create a jpg image, here it is: http://d.pr/i/lmrd

Apophnia creates other images from that one but they have a black background instead of white. Why, because of transparency(its really a PNG)? How can I change it to white? Is there a jpg bug?

What other information do you need?

Proposal option:
I would like to accept only request with f.ex r100, r300 and r500. Is there any way i can do that? Because one loop with all possible resolution can kill my server.

Greetings! Great work!

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.