# Tag Info

32

When you ask a question by clicking on the Ask Question link in the TeX.SX banner: or edit an existing question, the post header or toolbar will include the available (basic) formatting options. By clicking the Image <img> Ctrl+G button or by pressing Ctrl+G allows you to select an image for upload to stack.imgur.com - the image hosting platform (...

23

The PDF to PNG conversion of imgur isn't very good and results in a poor resolution. You should convert it yourself to a PNG (no JPGs please!). Note that the standalone class (v1.0) supports conversion to PNG. It works well with Image Magick under Linux, but isn't really tested under Windows by me. It needs the -shell-escape compiler switch to call convert ...

18

Here's my method, on Windows. Your mileage may vary: Nothing against it, but I use the "appropriate" document class rather than standalone. I open the result in my PDF reader, at 100% I take a screen shot (usually a subrectangle of the whole window), using MWSNAP, and save it (automatically) as a .png for uploading When, occasionally, the output is ...

17

The suggested method works on Linux with X11. Here we go: For recording, FFmpeg is used, xwininfo for getting the window dimensions including the window handle and some Perl to process the information from xwininfo output. The following script is invoked as: ffmpegWinCast.sh <my_window_recording>.(gif|mp4|mpg|...) After clicking an application ...

16

My method, on Mac OS X. Sometimes I use \usepackage[convert,border=2]{standalone}, which requires pdflatex --shell-escape and that ImageMagick is installed (it is if one has a full MacTeX distribution). This has a limitation, because not everything can be obtained just as if a real class were used. So most of the times I compile the document with the ...

15

Hopefully my answer below is still useful for you and others, especially for Windows users. Theory Once you have had a PDF output, you need to convert it to PNG by using the following batch file named pdf2png.bat. It is convenient to register the batch path to the system variable. rem pdf2png.bat echo off rem %1 PDF filename without extension rem %2 ...

14

The easiest solution I've found involves using the pdfpages package: Compile the MWE into a pdf. pdfpages allows "Several logical pages [to] be arranged onto each sheet of paper", like so: \documentclass{article} \usepackage{nopageno} \usepackage{pdfpages} \begin{document} \includepdf[nup=4x4,pages={1-16},frame=true]{<filename>.pdf} \end{document} ...

14

Another way to crop an image in someone's question is to use the imgur website that hosts the pictures for TeX.sx: copy the image URL of the image you want to edit (e.g. right-click on the image, click Copy Image Location, in Firefox) go to http://imgur.com/ paste the URL click Edit draw a rectangle around the desired area click Save copy the URL of the ...

14

This seems status-by-design with IMGUR. That is when the size of the image reaches some threshold, conversion to JPG is automatically initiated. The threshold seem to be around 1MB. Here is an external reference to a discussion on one of IMGUR's forums: PNG file changes to JPG when uploaded Posted by Kiana Gordon, updated Jan 28, 2012 I'm ...

13

I've gone through the list Caramdir provided and couldn't find any more broken images. I've been reuploading the images in batches of five for the past month or so (= solution 2 of the OP), and it looks like they're all fixed now. Dave Jarvis doesn't have as many posts and just a few still needed fixing. So unless there are more users who have been sneaking ...

13

Every site from the StackExchange network has a mobile version. And that includes our beloved community as well. :) According to the Powers That Be: If we detect a whitelisted mobile device user agent, you will automatically receive an optimized mobile view of any Stack Exchange on your smartphone. And also: Please note, however, that if you do find ...

12

There can be reasons why it is useful to have a command-line method to convert PDFs to PNGs instead of letting TeX do everything - for example, if producing the PDF takes a long time and you don't know what resolution you want, starting again from the PDF is easier than starting again from the original TeX file. Anyway, for those occasions the netpbm ...

12

I made myself a seperate command-line tool pdlcrop. It's form in bash is as follows: #!/bin/bash pdflatex $1 && pdfcrop -margin 6${1%.tex}.pdf && mv ${1%.tex}-crop.pdf${1%.tex}.pdf && convert -density 300 ${1%.tex}.pdf${1%.tex}.png && cp \${1%.tex}.png ~/crop.png This works as follows: (1) run pdflatex, (2) crop the ...

12

What changed is that we started using imgur thumbnails by default in chat; so when you link to http://i.stack.imgur.com/iSQFI.png, we display http://i.stack.imgur.com/iSQFIm.png, but link to the original: <a rel="nofollow" href="//i.stack.imgur.com/DmZBd.png"> <img src="//i.stack.imgur.com/DmZBdm.png" class="user-image" alt="user image"> <...

11

pdfcrop is very useful for cropping PDF files, capable of automatically removing all white margins. However, as you cannot directly embed PDF images, I guess you mean PNG images or other bitmap formats. In this case I assume, it's done using any picture editor such as GIMP (which I use), just line N.N. said.

9

I think you should paste the contents of the pdf_tex file into your question. Then all the necessary info will be in the question itself, which is better than relying on external sites, in my opinion. Note also that if you upload a PDF as an image to the post, it will be converted to PNG, I don't think the original PDF is saved.

8

Thanks for sharing! I can definitely see such recordings being helpful in some situations, but I want to add a caveat: Videos should only illustrate textual descriptions, but not replace them because of accessibility for users with impaired reading skills or devices that don't display images/animated gifs, and printing (or you have to provide an elaborate ...

8

In TeXmaker Cross-platform Editor, Starting from Version 3.4 It is easily possible to export a .png image from the internal pdf viewer with simple right click on the current .pdf page. Screenshot for .png preparation from .pdf using TeXmaker: Zoom your browser to see closer to code

8

Finally! It seems that the Imgur system, which is now used for the "Uploaded picture" option in your profile page (see this link), does not support .png with an alpha channel. Every time I've tried to upload one, it was rendered with a white background on TeX.SE: I was misled by this 2008 discussion about Gravatar's discontinued support for .png with an ...

8

Windows Vista and higher comes shipped with a Snipping Tool that allows you to copy any part of the screen to the clipboard and then paste it using the updated Stack Exchange image insertion protocol using Ctrl+G; formerly you could not copy-and-paste. This is a step up from using PrnScr that captures the entire screen to the clipboard, which then requires ...

7

I use a screenshot tool called Shutter under Ubuntu Linux which allows making screenshots by manual selection. I open the PDF with Acrobat Reader, start Shutter, click "Selection" and select the area I want. I configured it to place it as PNG in my /tmp folder so I can easily access it in the image upload dialog of this site. An alternative is to use the ...

7

I suspect the poor resolution you are talking about might be poor antialiasing. This is the convert one-liner you want: convert -density 384 mwe.pdf -resize 25% mwe.png Explanation Standard monitor resolution is 96 dots per inch, so simply sampling the pdf at 96 dpi produces a PNG image equal in size to PDF image on your screen. # this looks ugly convert ...

7

I'm not a lawyer, and copyright laws differ from country to country, but in the U.S., copyright does not need to be asserted: it exists the moment you produce the work. So in reality there is no such thing as "unknown copyright"; the safest assumption is that it belongs to the author or has been transferred to someone else. That said, it seems to me that ...

6

[Answered from my iPad] A shorter workflow is to submit screenshots rather than the actual pictures. You take a screenshot by pressing the "home" and "power" buttons simultaneously. The screenshot automatically goes to the camera roll, which can be directly accessed from Safari--it's the only thing you can get to from a conventional "upload" menu. The ...

6

ShareX Tool This tool allows you to quickly capture portions of your screen, automatically uploads the screenshot to imgur.com, then automatically copies the imgur link to your clipboard. All you need to do is press CTRL+V wherever you need it. Personally, made the hotkeys such that... CTRL+SHIFT+Z: Capture of piece of the screen. ALT+PRTSC: Capture the ...

6

True, comments provide only a limited set of markdown features (actually referred to as mini-markdown) with no convenient image-inclusion technique. The only way is to insert the image using the way described in how can i upload an image to be included in a question or answer? (that is, in the "Your Answer" box press Ctrl+G or via the GUI), copy the link ...

6

As of now, Stack Exchange only provides image uploader on all sites using Imgur's service. While some SE sites got their customization like Code Snippet (SO, etc), MathJax (Mathematics.SE, etc), embedded YouTube video (SciFi.SE, etc), ABC notation (Music.SE)... but PDF uploader is not one of them. The community of Blender.SE provides an unofficial way to ...

5

Flatten the image by taking a screen capture of the content; Paste it in an image editor; Crop to size; Upload This would be the direct/I-have-access-to-an-image-editor way. However, ... The StackExchange image hosting service IMGUR also allows "online cropping of images". Flatten the image by taking a screen capture of the content; Visit IMGUR and click ...

5

Nope. There is no caching being done (in a reasonable amount of time) by the system. Any and all images not hosted by StackExchange's (paid) imgur account are susceptible to breaking. It should be noted, however, that upon inserting links through the button interface of a q/a, the image is re-hosted immediately. I suppose a fair way to do this would be ...

5

The Firefox plugin LightShot offers a similar functionality with the exception that it uses Prntscr.com for uploading and you can edit online. You can also share in Twitter, Facebook (why I don't know). One function I find often useful is to look for similar images on Google (the right top button).

Only top voted, non community-wiki answers of a minimum length are eligible