Coder Social home page Coder Social logo

Comments (4)

mskoric avatar mskoric commented on August 30, 2024 1

hi @alexandrim0

great! that worked like a charm. muchas gracias!

Thanks for your time!

from magick.

alexandrim0 avatar alexandrim0 commented on August 30, 2024

Hi!

Is it works with other type (not webp)?
Where from values of source_fname, size, dest_fname comes?
It is not clear.

But mainly, you have to set Content-Type header and print image to request response body.
When you call ngx.exec file with image thumb is not saved to disk yet. My guess.

from magick.

mskoric avatar mskoric commented on August 30, 2024

Hi!

Is it works with other type (not webp)? Where from values of source_fname, size, dest_fname comes? It is not clear.

But mainly, you have to set Content-Type header and print image to request response body. When you call ngx.exec file with image thumb is not saved to disk yet. My guess.

hi,

thanks for your answer. yes. it works with jpg format. so it cant be that is something from with source_fname, size, dest_fname . also the mime.type is set correctly through nginx

root@6d7ba1f427a4:/# grep webp /usr/local/openresty/nginx/conf/mime.types
image/webp webp;

its really strange. it seems that webp isnt supported from magick with luarocks maybe?

from magick.

alexandrim0 avatar alexandrim0 commented on August 30, 2024

For webp you need not only libgraphicsmagick1 but libwebp-dev also:
RUN apt-get update -y && apt-get install -y git autoconf libtool-bin libmagickwand-dev webp libwebp-dev && rm -rf /var/lib/apt/lists/*

from magick.

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.