Code Monkey home page Code Monkey logo

Comments (18)

h2non avatar h2non commented on July 28, 2024

Which version of libvips are you using? Are you passing the proper text query param?

from imaginary.

sonu27 avatar sonu27 commented on July 28, 2024

Sorry forgot to mention this happens on the /form testing page.
How do I check the version?
It's the one that comes with the latest docker build.

from imaginary.

h2non avatar h2non commented on July 28, 2024

Be sure you are running the latest imaginary version, pulling from master.
Then, if you make a GET request to / you should see JSON returning the current versions.

from imaginary.

sonu27 avatar sonu27 commented on July 28, 2024

imaginary server 0.1.9

from imaginary.

h2non avatar h2non commented on July 28, 2024

Try pulling the latest: 0.1.15.

from imaginary.

sonu27 avatar sonu27 commented on July 28, 2024

Ok trying that now.
But the latest tag isn't working correctly.
You may need to update it each time, it's pointing to an old version: https://hub.docker.com/r/h2non/imaginary/tags/

from imaginary.

sonu27 avatar sonu27 commented on July 28, 2024

Same thing happens:

{
imaginary: "0.1.15",
bimg: "0.1.21",
libvips: "8.0.2"
}

from imaginary.

h2non avatar h2non commented on July 28, 2024

I see now. I'll fix the docker tag.

The issue is probably due to the libvips version, it works fine with +7.40. watermark feature is not fully supported yet in 8.x

from imaginary.

h2non avatar h2non commented on July 28, 2024

Docker tag was fixed. Now you can use latest. I'm gonna reproduce the issue using libvips 8.x, and based on that, perhaps I'll release a new release (and Docker tag too) which uses libvips 7.42.3, as intermediate solution until the support with 8.x is done.

from imaginary.

sonu27 avatar sonu27 commented on July 28, 2024

Wow. That was amazingly fast.

from imaginary.

sonu27 avatar sonu27 commented on July 28, 2024

Deleted all my images, and refetched the latest image.
It still uses libvips: "8.0.2"
Also, the latest tag doesn't work correctly, as the image didn't auto update.
I had to delete it and refetch latest. :(

from imaginary.

h2non avatar h2non commented on July 28, 2024

Too fast, dude. I'm still working on it. I'll let you know.

from imaginary.

h2non avatar h2non commented on July 28, 2024

Breaking news: I was wrong. The issue we're covering here is not related to compatibility inconsistencies in different libvips versions, which is actually in some way positive.

I guess it's due to an unsatisfied dependency when compiling, especially in raw Linux distributions without graphical environment. To be more concrete, I'm talking about pango, which is internally used by libvips to render text-based stuff.

I'm digging into the proper solution, and I'll let you know about it.
By the moment, I would not recommend you to use the watermark feature, which is the unique feature that doesn't works currently in Docker.

from imaginary.

sonu27 avatar sonu27 commented on July 28, 2024

Thanks man.

Off topic
I'm planning on creating an image service for Firebox.com. We have multiple images for a product, multiple sizes (some with watermarks). e.g. http://media.firebox.com/pic/p7344_column_grid_12.jpg that would be generated from an original image when requested and stored on the filesystem if it didn't exist already.

I might write something from scratch in Go. We need GIF support and config for different sizes.
Let me know if you have suggestions.

from imaginary.

h2non avatar h2non commented on July 28, 2024

Bad short answer: gif support is not planned. But libvips can handle it via libmagick bindings.

from imaginary.

h2non avatar h2non commented on July 28, 2024

As I said before, this issue is generated due to libpango dependency is missing when compiling libvips. This can be easily fixed from Dockerfile, so I moved the request to the original maintainer of the parent image I'm using in the Dockerfile.

Hopefully that is fixed now, but the Docker image is not available yet, so I'll let you know.

Just to clarify, for now there's not compatibility issue with latest versions of libvips.

from imaginary.

h2non avatar h2non commented on July 28, 2024

I've just pushed a fresh version, just pull it from Docker hub:

docker pull h2non/imaginary

All the watermark feature should work now. Cheers!

from imaginary.

sonu27 avatar sonu27 commented on July 28, 2024

Brilliant, all works.

Thanks

from imaginary.

Related Issues (20)

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.