Giter Club home page Giter Club logo

Comments (5)

rprieto avatar rprieto commented on June 2, 2024 1

Thanks for offering to help! Great question about Alpine / Debian. I've been wondering about making the switch. I opened a new issue to track this: #358. For now I suggest adding dcraw to the existing Alpine image with a multi-stage build.

from thumbsup.

rprieto avatar rprieto commented on June 2, 2024

Hi! Thanks for raising this. It's a good idea.
I see dcraw is available on some package managers (e.g. apt install dcraw) but not in Alpine Linux.
I will look into building it from source.

from thumbsup.

usmanatron avatar usmanatron commented on June 2, 2024

I'd like to have a go at this - fingers crossed Ill have time over the next week or so

from thumbsup.

usmanatron avatar usmanatron commented on June 2, 2024

Question: What are your thoughts on moving away from alpine to something like Debian? Before spending time working out compiling, I just want to confirm that's the right way to fix this as opposed to using something which has the package already available!

Let me know what you think :-)

from thumbsup.

mgwerder avatar mgwerder commented on June 2, 2024

For all those in need of dcraw: I have a small Dockerfile adding dcraw-support. However, the dcraw support seems to ignore the color settings embedded in the file. My files look a dull when converted with the automated process of thumbsup and I did not find the cause for it so far.

Important note: The Dockerfile works but does a VERY dirty job. anyone keen into building it with a proper intermediate container is highly welcomed.

FROM ghcr.io/thumbsup/thumbsup

# install prerequisites
RUN apk add wget curl build-base gcc gawk jasper-dev libjpeg libjpeg-turbo-dev

# build iconv
RUN cd /tmp; \
    wget https://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.17.tar.gz; \
    tar -xzvf libiconv-*.tar.gz ;\
    cd libiconv* ; \
    ./configure ; \
RUN cd /tmp/libiconv* ; \
    make ; \
    make install ;

# build gettext
RUN cd /tmp ; \
    wget https://ftp.gnu.org/gnu/gettext/gettext-0.22.tar.xz ; \
    tar -xvf gettext-*.tar.xz ; \
    cd /tmp/gettext* ; \
    ./configure ;
RUN cd /tmp/gettext* ; \
    make ; \
    make install ;

RUN apk add lcms2-dev

# build dcraw
RUN cd /tmp ; \
    wget https://www.dechifro.org/dcraw/archive/dcraw-9.28.0.tar.gz ; \
    tar -xzvf dcraw-*.tar.gz ; \
    cd /tmp/dcraw ; \
    sed 's/-llcms2/-llcms2 -lintl/' <install >install.new && mv install.new install ; \
    chmod 755 install ;
RUN cd /tmp/dcraw ; \
    ./install ;

# delete temporary build structures
RUN rm -r /tmp/*

# add optional stuff
RUN apk add ffmpeg gifsicle imagemagick

# make sure thumbsup is run upon container start
CMD ["thumbsup"]

from thumbsup.

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.