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

Some formats don't seem to work #10

Open
grenmester opened this issue Oct 11, 2018 · 7 comments
Open

Some formats don't seem to work #10

grenmester opened this issue Oct 11, 2018 · 7 comments

Comments

@grenmester
Copy link

I tried querying pngs and jpgs and it seems to be returning nothing.

The following svg works fine: http://cube.crider.co.uk/visualcube.php?fmt=svg&size=150&pzl=2&alg=R2F2R2.

But when I try querying a png it gives me a blank page: http://cube.crider.co.uk/visualcube.php?fmt=png&size=150&pzl=2&alg=R2F2R2.

@lz1998
Copy link

lz1998 commented Oct 22, 2019

Have you installed ImageMagick?
try apt-get install ImageMagick -y

@matbur
Copy link

matbur commented Oct 27, 2019

I think @grenmester says that other formats don't work on @Cride5's server.
E.g. command

$ curl 'http://cube.crider.co.uk/visualcube.php?fmt=svg&size=150&pzl=2&alg=R2F2R2'

returns an SVG code, but

$ curl 'http://cube.crider.co.uk/visualcube.php?fmt=png&size=150&pzl=2&alg=R2F2R2'

(note different fmt parameter) returns nothing.

So installing ImageMagick will not help him.

@matbur
Copy link

matbur commented Oct 27, 2019

This bug is not only about formats but also about sizes. When I paste into browser this link:
http://cube.crider.co.uk/visualcube.php?fmt=png&size=201&pzl=2&alg=R2F2R2
it returns PNG file but this doesn't:
http://cube.crider.co.uk/visualcube.php?fmt=png&size=200&pzl=2&alg=R2F2R2
(note different size parameter).

Moreover for SVG both works properly:
http://cube.crider.co.uk/visualcube.php?fmt=svg&size=201&pzl=2&alg=R2F2R2
http://cube.crider.co.uk/visualcube.php?fmt=svg&size=200&pzl=2&alg=R2F2R2

@lz1998
Copy link

lz1998 commented Oct 27, 2019

@matbur
The reason is that server "cube.crider.co.uk" hasn't installed ImageMagick.
Installing ImageMagick on your own computer makes no effect.

You can try composing this project with docker on your own server.
I have built a docker image on my docker hub. lz1998/visualcube
docker run -d -p 80:80 lz1998/visualcube

Dockerfile
FROM php:7.2-apache
RUN apt-get update \
&& apt-get install imagemagick -y
COPY visualcube/ /var/www/html/
EXPOSE 80

@matbur
Copy link

matbur commented Oct 27, 2019

@lz1998 you got a good idea. I created a PR with your Dockerfile. Thanks :)

@lz1998
Copy link

lz1998 commented Oct 27, 2019

@blonkm
Copy link

blonkm commented Aug 1, 2023

The site has moved to a new domain is why.
http://cube.rider.biz/visualcube.php?fmt=png&size=150&pzl=2&alg=R2F2R2

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

4 participants