Crossed out red box fitting tightly around image Unicorn Meta Zoo #1: Why another podcast? Announcing the arrival of Valued Associate #679: Cesar ManaraHow to put round cornered frame around an imageNeed to left align referenced image in mdframed Info boxCentering a frameboxGraphics: File name won't go awayframe around image and captionColored box with image and text, no marginshow to put Verbatim inside minipage that has fbox around it? “Paragraph ended before FV@BeginScanning was complete. }”Macro for Copy/Paste Image in Tex fileBox around equation in align mode?Image not found in leadsheets/song environment

How to keep bees out of canned beverages?

Is it possible to cast 2x Final Payment while sacrificing just one creature?

Are there moral objections to a life motivated purely by money? How to sway a person from this lifestyle?

finding a tangent line to a parabola

How to have a sharp product image?

Do I need to watch Ant-Man and the Wasp and Captain Marvel before watching Avengers: Endgame?

Suing a Police Officer Instead of the Police Department

How long after the last departure shall the airport stay open for an emergency return?

I preordered a game on my Xbox while on the home screen of my friend's account. Which of us owns the game?

How to avoid introduction cliches

Can you stand up from being prone using Skirmisher outside of your turn?

"Rubric" as meaning "signature" or "personal mark" -- is this accepted usage?

How to open locks without disable device?

Older movie/show about humans on derelict alien warship which refuels by passing through a star

Why didn't the Space Shuttle bounce back into space as many times as possible so as to lose a lot of kinetic energy up there?

Israeli soda type drink

Why doesn't the standard consider a template constructor as a copy constructor?

How can I wire a 9-position switch so that each position turns on one more LED than the one before?

Why do distances seem to matter in the Foundation world?

Could moose/elk survive in the Amazon forest?

What is the ongoing value of the Kanban board to the developers as opposed to management

Is Diceware more secure than a long passphrase?

First instead of 1 when referencing

Approximating integral with small parameter



Crossed out red box fitting tightly around image



Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar ManaraHow to put round cornered frame around an imageNeed to left align referenced image in mdframed Info boxCentering a frameboxGraphics: File name won't go awayframe around image and captionColored box with image and text, no marginshow to put Verbatim inside minipage that has fbox around it? “Paragraph ended before FV@BeginScanning was complete. }”Macro for Copy/Paste Image in Tex fileBox around equation in align mode?Image not found in leadsheets/song environment










3















I can do



textcolorred
fbox
includegraphicspath




To get a red frame sitting tightly around an image inside a firgure environment. Now, is there a way to also get a red cross over the image?



Kind regards.










share|improve this question


























    3















    I can do



    textcolorred
    fbox
    includegraphicspath




    To get a red frame sitting tightly around an image inside a firgure environment. Now, is there a way to also get a red cross over the image?



    Kind regards.










    share|improve this question
























      3












      3








      3


      0






      I can do



      textcolorred
      fbox
      includegraphicspath




      To get a red frame sitting tightly around an image inside a firgure environment. Now, is there a way to also get a red cross over the image?



      Kind regards.










      share|improve this question














      I can do



      textcolorred
      fbox
      includegraphicspath




      To get a red frame sitting tightly around an image inside a firgure environment. Now, is there a way to also get a red cross over the image?



      Kind regards.







      graphics boxes






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 1 hour ago









      sigvaldmsigvaldm

      1284




      1284




















          2 Answers
          2






          active

          oldest

          votes


















          7














          A TikZ solution that includes the image file inside a tikzpicture and draws a square and cross relative to the coordinates of the image:



          documentclassarticle
          usepackagetikz
          begindocument
          begintikzpicture
          node[inner sep=0] (image) at (0,0) includegraphics[width=0.5textwidth]example-image;
          draw[red,ultra thick] (image.south east) -- (image.north west);
          draw[red,ultra thick] (image.north east) -- (image.south west);
          draw[red,ultra thick] (image.south west) rectangle (image.north east);
          endtikzpicture
          enddocument


          enter image description here






          share|improve this answer

























          • My compliments for your answer. I have deleted my previous comment for the OP.

            – Sebastiano
            1 hour ago






          • 1





            Even shorter: draw[red,ultra thick] (image.south west) rectangle (image.north east); draw[red,ultra thick] (image.south east) -- (image.north west); draw[red,ultra thick] (image.north east) -- (image.south west); ;-)

            – AndiW
            1 hour ago











          • @AndiW Better indeed :) I've edited my answer.

            – Marijn
            1 hour ago






          • 1





            Thanks to all of you. When changing the answer, you forgot one of the diagonals in the cross. You might want to fix that. Personally I also liked it better without ultra thick (then it's also more similar to fbox) but I guess that's a matter of taste.

            – sigvaldm
            44 mins ago


















          5














          as supplement to @Marjin answer (+1), a little bit shorter code ...



          documentclassarticle
          usepackagetikz
          begindocument
          begintikzpicture
          node (image) [inner sep=0] includegraphics[width=0.5textwidth]example-image;
          draw[red,ultra thick] (image.south west) -- (image.north east)
          (image.north west) -- (image.south east)
          (image.south west) rectangle (image.north east);
          endtikzpicture


          the result is similar:



          enter image description here






          share|improve this answer























            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "85"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f487546%2fcrossed-out-red-box-fitting-tightly-around-image%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            7














            A TikZ solution that includes the image file inside a tikzpicture and draws a square and cross relative to the coordinates of the image:



            documentclassarticle
            usepackagetikz
            begindocument
            begintikzpicture
            node[inner sep=0] (image) at (0,0) includegraphics[width=0.5textwidth]example-image;
            draw[red,ultra thick] (image.south east) -- (image.north west);
            draw[red,ultra thick] (image.north east) -- (image.south west);
            draw[red,ultra thick] (image.south west) rectangle (image.north east);
            endtikzpicture
            enddocument


            enter image description here






            share|improve this answer

























            • My compliments for your answer. I have deleted my previous comment for the OP.

              – Sebastiano
              1 hour ago






            • 1





              Even shorter: draw[red,ultra thick] (image.south west) rectangle (image.north east); draw[red,ultra thick] (image.south east) -- (image.north west); draw[red,ultra thick] (image.north east) -- (image.south west); ;-)

              – AndiW
              1 hour ago











            • @AndiW Better indeed :) I've edited my answer.

              – Marijn
              1 hour ago






            • 1





              Thanks to all of you. When changing the answer, you forgot one of the diagonals in the cross. You might want to fix that. Personally I also liked it better without ultra thick (then it's also more similar to fbox) but I guess that's a matter of taste.

              – sigvaldm
              44 mins ago















            7














            A TikZ solution that includes the image file inside a tikzpicture and draws a square and cross relative to the coordinates of the image:



            documentclassarticle
            usepackagetikz
            begindocument
            begintikzpicture
            node[inner sep=0] (image) at (0,0) includegraphics[width=0.5textwidth]example-image;
            draw[red,ultra thick] (image.south east) -- (image.north west);
            draw[red,ultra thick] (image.north east) -- (image.south west);
            draw[red,ultra thick] (image.south west) rectangle (image.north east);
            endtikzpicture
            enddocument


            enter image description here






            share|improve this answer

























            • My compliments for your answer. I have deleted my previous comment for the OP.

              – Sebastiano
              1 hour ago






            • 1





              Even shorter: draw[red,ultra thick] (image.south west) rectangle (image.north east); draw[red,ultra thick] (image.south east) -- (image.north west); draw[red,ultra thick] (image.north east) -- (image.south west); ;-)

              – AndiW
              1 hour ago











            • @AndiW Better indeed :) I've edited my answer.

              – Marijn
              1 hour ago






            • 1





              Thanks to all of you. When changing the answer, you forgot one of the diagonals in the cross. You might want to fix that. Personally I also liked it better without ultra thick (then it's also more similar to fbox) but I guess that's a matter of taste.

              – sigvaldm
              44 mins ago













            7












            7








            7







            A TikZ solution that includes the image file inside a tikzpicture and draws a square and cross relative to the coordinates of the image:



            documentclassarticle
            usepackagetikz
            begindocument
            begintikzpicture
            node[inner sep=0] (image) at (0,0) includegraphics[width=0.5textwidth]example-image;
            draw[red,ultra thick] (image.south east) -- (image.north west);
            draw[red,ultra thick] (image.north east) -- (image.south west);
            draw[red,ultra thick] (image.south west) rectangle (image.north east);
            endtikzpicture
            enddocument


            enter image description here






            share|improve this answer















            A TikZ solution that includes the image file inside a tikzpicture and draws a square and cross relative to the coordinates of the image:



            documentclassarticle
            usepackagetikz
            begindocument
            begintikzpicture
            node[inner sep=0] (image) at (0,0) includegraphics[width=0.5textwidth]example-image;
            draw[red,ultra thick] (image.south east) -- (image.north west);
            draw[red,ultra thick] (image.north east) -- (image.south west);
            draw[red,ultra thick] (image.south west) rectangle (image.north east);
            endtikzpicture
            enddocument


            enter image description here







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited 41 mins ago

























            answered 1 hour ago









            MarijnMarijn

            8,789639




            8,789639












            • My compliments for your answer. I have deleted my previous comment for the OP.

              – Sebastiano
              1 hour ago






            • 1





              Even shorter: draw[red,ultra thick] (image.south west) rectangle (image.north east); draw[red,ultra thick] (image.south east) -- (image.north west); draw[red,ultra thick] (image.north east) -- (image.south west); ;-)

              – AndiW
              1 hour ago











            • @AndiW Better indeed :) I've edited my answer.

              – Marijn
              1 hour ago






            • 1





              Thanks to all of you. When changing the answer, you forgot one of the diagonals in the cross. You might want to fix that. Personally I also liked it better without ultra thick (then it's also more similar to fbox) but I guess that's a matter of taste.

              – sigvaldm
              44 mins ago

















            • My compliments for your answer. I have deleted my previous comment for the OP.

              – Sebastiano
              1 hour ago






            • 1





              Even shorter: draw[red,ultra thick] (image.south west) rectangle (image.north east); draw[red,ultra thick] (image.south east) -- (image.north west); draw[red,ultra thick] (image.north east) -- (image.south west); ;-)

              – AndiW
              1 hour ago











            • @AndiW Better indeed :) I've edited my answer.

              – Marijn
              1 hour ago






            • 1





              Thanks to all of you. When changing the answer, you forgot one of the diagonals in the cross. You might want to fix that. Personally I also liked it better without ultra thick (then it's also more similar to fbox) but I guess that's a matter of taste.

              – sigvaldm
              44 mins ago
















            My compliments for your answer. I have deleted my previous comment for the OP.

            – Sebastiano
            1 hour ago





            My compliments for your answer. I have deleted my previous comment for the OP.

            – Sebastiano
            1 hour ago




            1




            1





            Even shorter: draw[red,ultra thick] (image.south west) rectangle (image.north east); draw[red,ultra thick] (image.south east) -- (image.north west); draw[red,ultra thick] (image.north east) -- (image.south west); ;-)

            – AndiW
            1 hour ago





            Even shorter: draw[red,ultra thick] (image.south west) rectangle (image.north east); draw[red,ultra thick] (image.south east) -- (image.north west); draw[red,ultra thick] (image.north east) -- (image.south west); ;-)

            – AndiW
            1 hour ago













            @AndiW Better indeed :) I've edited my answer.

            – Marijn
            1 hour ago





            @AndiW Better indeed :) I've edited my answer.

            – Marijn
            1 hour ago




            1




            1





            Thanks to all of you. When changing the answer, you forgot one of the diagonals in the cross. You might want to fix that. Personally I also liked it better without ultra thick (then it's also more similar to fbox) but I guess that's a matter of taste.

            – sigvaldm
            44 mins ago





            Thanks to all of you. When changing the answer, you forgot one of the diagonals in the cross. You might want to fix that. Personally I also liked it better without ultra thick (then it's also more similar to fbox) but I guess that's a matter of taste.

            – sigvaldm
            44 mins ago











            5














            as supplement to @Marjin answer (+1), a little bit shorter code ...



            documentclassarticle
            usepackagetikz
            begindocument
            begintikzpicture
            node (image) [inner sep=0] includegraphics[width=0.5textwidth]example-image;
            draw[red,ultra thick] (image.south west) -- (image.north east)
            (image.north west) -- (image.south east)
            (image.south west) rectangle (image.north east);
            endtikzpicture


            the result is similar:



            enter image description here






            share|improve this answer



























              5














              as supplement to @Marjin answer (+1), a little bit shorter code ...



              documentclassarticle
              usepackagetikz
              begindocument
              begintikzpicture
              node (image) [inner sep=0] includegraphics[width=0.5textwidth]example-image;
              draw[red,ultra thick] (image.south west) -- (image.north east)
              (image.north west) -- (image.south east)
              (image.south west) rectangle (image.north east);
              endtikzpicture


              the result is similar:



              enter image description here






              share|improve this answer

























                5












                5








                5







                as supplement to @Marjin answer (+1), a little bit shorter code ...



                documentclassarticle
                usepackagetikz
                begindocument
                begintikzpicture
                node (image) [inner sep=0] includegraphics[width=0.5textwidth]example-image;
                draw[red,ultra thick] (image.south west) -- (image.north east)
                (image.north west) -- (image.south east)
                (image.south west) rectangle (image.north east);
                endtikzpicture


                the result is similar:



                enter image description here






                share|improve this answer













                as supplement to @Marjin answer (+1), a little bit shorter code ...



                documentclassarticle
                usepackagetikz
                begindocument
                begintikzpicture
                node (image) [inner sep=0] includegraphics[width=0.5textwidth]example-image;
                draw[red,ultra thick] (image.south west) -- (image.north east)
                (image.north west) -- (image.south east)
                (image.south west) rectangle (image.north east);
                endtikzpicture


                the result is similar:



                enter image description here







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 1 hour ago









                ZarkoZarko

                131k869170




                131k869170



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f487546%2fcrossed-out-red-box-fitting-tightly-around-image%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Oświęcim Innehåll Historia | Källor | Externa länkar | Navigeringsmeny50°2′18″N 19°13′17″Ö / 50.03833°N 19.22139°Ö / 50.03833; 19.2213950°2′18″N 19°13′17″Ö / 50.03833°N 19.22139°Ö / 50.03833; 19.221393089658Nordisk familjebok, AuschwitzInsidan tro och existensJewish Community i OświęcimAuschwitz Jewish Center: MuseumAuschwitz Jewish Center

                    Valle di Casies Indice Geografia fisica | Origini del nome | Storia | Società | Amministrazione | Sport | Note | Bibliografia | Voci correlate | Altri progetti | Collegamenti esterni | Menu di navigazione46°46′N 12°11′E / 46.766667°N 12.183333°E46.766667; 12.183333 (Valle di Casies)46°46′N 12°11′E / 46.766667°N 12.183333°E46.766667; 12.183333 (Valle di Casies)Sito istituzionaleAstat Censimento della popolazione 2011 - Determinazione della consistenza dei tre gruppi linguistici della Provincia Autonoma di Bolzano-Alto Adige - giugno 2012Numeri e fattiValle di CasiesDato IstatTabella dei gradi/giorno dei Comuni italiani raggruppati per Regione e Provincia26 agosto 1993, n. 412Heraldry of the World: GsiesStatistiche I.StatValCasies.comWikimedia CommonsWikimedia CommonsValle di CasiesSito ufficialeValle di CasiesMM14870458910042978-6

                    Typsetting diagram chases (with TikZ?) Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)How to define the default vertical distance between nodes?Draw edge on arcNumerical conditional within tikz keys?TikZ: Drawing an arc from an intersection to an intersectionDrawing rectilinear curves in Tikz, aka an Etch-a-Sketch drawingLine up nested tikz enviroments or how to get rid of themHow to place nodes in an absolute coordinate system in tikzCommutative diagram with curve connecting between nodesTikz with standalone: pinning tikz coordinates to page cmDrawing a Decision Diagram with Tikz and layout manager