Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

matte/seamcarve isn't supported. #9

Open
luxlux opened this issue Nov 20, 2012 · 4 comments
Open

matte/seamcarve isn't supported. #9

luxlux opened this issue Nov 20, 2012 · 4 comments

Comments

@luxlux
Copy link

luxlux commented Nov 20, 2012

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

@kristopolous
Copy link
Owner

For subdomains, it's probably best to support unix sockets although as it stands right now you can do this. Look into nginx proxy_pass, here's an example:

server {
server_name images.example.com;

location / {
    proxy_pass http://127.0.0.1:1210;
}
}

and as for (2), I put that ball in your court. A small upstart daemon will suffice. If you need me to build it I could.

@luxlux
Copy link
Author

luxlux commented Nov 29, 2012

Thanks for your quick answer, kristopolous!

(1) My vserver runs Debian with Confixx, so i did it using the still installed Apache by this way:

Adding proxy support to Apache2

cd /etc/apache2/mods-enabled
ln -s ../mods-available/proxy.load
ln -s ../mods-available/proxy.conf
ln -s ../mods-available/proxy_http.load

Adding my proxy to apophnia to the Apache configuration:

<VirtualHost MY-SERVER-IP:80>
    ServerName images.mydomain.com
    ProxyPass / http://127.0.0.1:1210/
</VirtualHost>

And restarting Apache:

/etc/init.d/apache2 restart

This works for me.

(2) I guess i need to copy one of the other shell script files in /etc/init.d/ and change it for starting and holding apophnia up and running even if it may breaks. But I don't really know what i have to care about doing this.
So, it would be very good if you could build such a deamon!

(3a - new) May be i installed something wrong, but there is a problem with the proportion setting in apophnia.conf. If i change it to "proportion": "crop", or "proportion": "squash", apophnia hangs while starting at "Reading apophnia.conf". If i use "proportion": "matte",or "proportion": "seamcarve",it starts.
But this setting changes nothing in the result, even if i request a new not cached size.

(3b - new) Possibly connected to 3a. If i have an original with 300x1000px and i call it with picturename_r100.jpg it delivers a jolted pic with 100x100px. But i need a pic in the original proportion which should be 100x333px. Is this possible?

@kristopolous
Copy link
Owner

silly github, I just saw this now ... I'll try to get back to it in the next day or so.

@kristopolous
Copy link
Owner

how sloppy of me. anyway, 3a isn't supported. I should probably update that. Geez ... I'm like the only formal option in this space ... I need to get on top of this thing. ... let me rephrase this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants