[chimerax-users] Image saving/exporting options
Matthew Graneri
mhvg1994 at gmail.com
Wed Feb 15 00:20:48 PST 2023
Hi Elaine,
That’s fair enough. You’re absolutely right - journals always seem to want tiff files (I cannot figure out why, though).
I tried your suggestion, though, and while it kind of worked, there was a weird effect with the text in the saved image - for some reason, the text appears to be a significantly lower resolution to the rest of the image (I’ll attach a screenshot below). Do you have any idea why this might be happening?
Also, just an FYI, the reason I like PDFs is because they use vector graphics. The way it was explained to me is that vector graphics make an image out of a set of mathematical functions, which means you can expand them to whatever size you like and they will maintain their resolution (a circle is always going to be round), to a point, at least. PNGs, JPEGs and TIFFs are bitmap images, which means they are made of an array of pixels, so, when you enlarge an image, the pixels simply expand (circles become a series of squares). It also means that the higher the resolution, the larger the file (whereas the number of functions in a PDF file remains constant). While this might sound like a trivial difference, when you’re writing a thesis in word, or compiling one in LaTeX, it can mean the difference between a 30 MB file or a 150 MB file.
After a quick look, it seems like you can’t actually save images as vector graphics in ChimeraX. Is there a reason for that, or is it just chance? (Not criticising! Just curious.)
Regards,
Matthew

> On 15 Feb 2023, at 12:45 am, Elaine Meng <meng at cgl.ucsf.edu> wrote:
>
> Hi Matthew,
> There is no option in distance units like inches/centimers but you can specify a high resolution by specifying a high number of pixels. E.g. if you want the image to be 2 inches wide at 600 dpi then you need the image to be 1200 pixels wide. The file would not be marked with the 2 inches width, but you could set that in some separate image-editing application.
>
> There is no option to save PDF of the graphics window. It will not really save you in file size anyway when the contents include an image like a photo or molecular graphics. The PDF will be just as big as the resolution of the image requires.
>
> The filesize/resolution tradeoff is different for different image formats, and there are various types of compression available, and some formats are "lossless" and others are not. I'm not an expert on the details. I use TIFF and PNG when I want lossless (and those are the ones journals usually want), JPG if I'm willing to lower the quality.
>
> I hope this helps,
> Elaine
> -----
> Elaine C. Meng, Ph.D.
> UCSF Chimera(X) team
> Department of Pharmaceutical Chemistry
> University of California, San Francisco
>
>
>> On Feb 13, 2023, at 8:15 PM, Matthew Graneri via ChimeraX-users <chimerax-users at cgl.ucsf.edu> wrote:
>>
>> Hi there,
>> I was wondering if there was an option to set the resolution of an image you want to export? In the older Chimera application, there were many more options open to you when you wanted to save an image (I’ve attached a screenshot of the old and new image saving screens for comparison). If not, is there any chance of implementing a resolution specification option sometime in the future?
>>
>> I was also wondering if it was possible to save images from ChimeraX as PDF files? I find that they usually maintain a high resolution without being particularly big, in terms of memory.
>>
>> Apart from that, really enjoying ChimeraX!
>>
>> Regards,
>>
>> Matthew
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.rbvi.ucsf.edu/pipermail/chimerax-users/attachments/20230215/6b1e3863/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot 2023-02-15 at 4.07.27 pm.png
Type: image/png
Size: 270988 bytes
Desc: not available
URL: <http://www.rbvi.ucsf.edu/pipermail/chimerax-users/attachments/20230215/6b1e3863/attachment-0001.png>
More information about the ChimeraX-users
mailing list