Git Product home page Git Product logo

Comments (2)

MatrixManAtYrService avatar MatrixManAtYrService commented on July 18, 2024

A bit more hacking around and I can repoduce this error outside of ipython:

tkiz.tex

\documentclass[convert={convertexe={convert},density=300,size=400x240,outext=.png},border=0pt]{standalone}
\usepackage[]{tikz}

\begin{document}
\begin{tikzpicture}[scale=1,]
\draw (0,0) rectangle (1,1);
\filldraw (0.5,0.5) circle (.1);

\end{tikzpicture}
\end{document}
$ pdflatex --shell-escape tkiz.tex
...
convert-im6.q16: profile 'icc': 'RGB ': RGB color space not permitted on grayscale PNG `tikz.png' @ warning/png.c/MagickPNGWarningHandler/1667.

It looks like the arguments to documentclass are passed through to imagemagick, but trying to add colorspace=RGB gives an error:

\documentclass[convert={convertexe={convert},colorspace=RGB,density=300,size=400x240,outext=.png},border=0pt]{standalone}

Gives an error:

! Package xkeyval Error: `colorspace' undefined in families `standalone.cls/convert'.

same goes for adding define=colorspace:auto-grayscale=false

from ipython-tikzmagic.

MatrixManAtYrService avatar MatrixManAtYrService commented on July 18, 2024

Hahaha, that's a warning, not an error. I had wrongly assumed that it was triggering this functionality., so I set about working around it. But that was silly because pdflatex still returns 0 in the event of warnings.

I found a workaround, but the awkward logs were still showing up. That's a separate issue.

from ipython-tikzmagic.

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.