<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi Mikael,</p>
      If I use menu File / Save... to save a PNG image it logs a command
    in the Log panel that looks like<br>
    <br>
        save C:/Users/goddard/Desktop/test.png width 746 height 466
    supersample 3<br>
    <br>
    The transparentBackground option is not in the save dialog but at
    least this gives you an idea of the format of the command.  Most
    ChimeraX user interface actions log equivalent commands so looking
    at the Log is a good way to see the command syntax.<br>
    <br>
        Tom<br>
    <br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 10/8/2020 9:50 AM, Eric Pettersen
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:1962B3CD-5B87-45C6-98C7-4F617D15C960@cgl.ucsf.edu">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      Okay, in tomorrow's daily build you will be able to just use
      "format png".
      <div class=""><br class="">
      </div>
      <div class="">--Eric<br class="">
        <div><br class="">
          <blockquote type="cite" class="">
            <div class="">On Oct 8, 2020, at 9:05 AM, Eric Pettersen
              <<a href="mailto:pett@cgl.ucsf.edu" class=""
                moz-do-not-send="true">pett@cgl.ucsf.edu</a>> wrote:</div>
            <br class="Apple-interchange-newline">
            <div class="">
              <meta http-equiv="Content-Type" content="text/html;
                charset=UTF-8" class="">
              <div style="word-wrap: break-word; -webkit-nbsp-mode:
                space; line-break: after-white-space;" class="">Hi
                Mikael,
                <div class=""><span class="Apple-tab-span" style="white-space:pre">   </span>Right
                  now, if you don't provide the .png suffix, you have to
                  use a <b class="">format</b> value of "png image"
                  rather than just "png".  Will probably change that to
                  just "png", but right now your command should be:</div>
                <div class=""><br class="">
                </div>
                <div class=""><span class="Apple-tab-span" style="white-space:pre">   </span>save
                  C:\Users\a\Desktop\k format "png image" supersample 4
                  transparentBackground true</div>
                <div class=""><br class="">
                </div>
                <div class="">
                  <div class="">--Eric</div>
                  <div class=""><br class="">
                  </div>
                  <div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>Eric
                    Pettersen</div>
                  <div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>UCSF
                    Computer Graphics Lab</div>
                  <div class=""><br class="">
                    <blockquote type="cite" class="">
                      <div class="">On Oct 8, 2020, at 8:01 AM, Elaine
                        Meng <<a href="mailto:meng@cgl.ucsf.edu"
                          class="" moz-do-not-send="true">meng@cgl.ucsf.edu</a>>
                        wrote:</div>
                      <br class="Apple-interchange-newline">
                      <div class="">
                        <div class="">Hi Mikael,<br class="">
                          The first one is definitely wrong because you
                          should not include the square brackets in the
                          command.  They are shown in usage descriptions
                          to indicate optional arguments, as explained
                          here:<br class="">
                          <br class="">
                          <<a
href="http://rbvi.ucsf.edu/chimerax/docs/user/commands/usageconventions.html"
                            class="" moz-do-not-send="true">http://rbvi.ucsf.edu/chimerax/docs/user/commands/usageconventions.html</a>><br
                            class="">
                          <br class="">
                          Make sure the pathname is correct.  Maybe you
                          cannot specify the drive in the pathname (the
                          "C:") ... however, I'm on Mac and can't test
                          this directly, but the other developers would
                          know.  You could try specifying pathname
                          without drive to see where it goes.   On Mac,
                          this works to put a file on the Desktop under
                          my home directory:<br class="">
                          <br class="">
                          save ~/Desktop/blah.png super 4 transparent
                          true<br class="">
                          <br class="">
                          As in my example, you can just specify format
                          with filename suffix (e.g. "k.png") instead of
                          using the format option, but using the format
                          option like you did should also be OK.<br
                            class="">
                          <br class="">
                          I hope this helps,<br class="">
                          Elaine<br class="">
                          -----<br class="">
                          Elaine C. Meng, Ph.D.                       <br
                            class="">
                          UCSF Chimera(X) team<br class="">
                          Department of Pharmaceutical Chemistry<br
                            class="">
                          University of California, San Francisco<br
                            class="">
                          <br class="">
                          <br class="">
                          <blockquote type="cite" class="">On Oct 8,
                            2020, at 12:41 AM, Karjalainen, Mikael <<a
                              href="mailto:mikael.p.karjalainen@jyu.fi"
                              class="" moz-do-not-send="true">mikael.p.karjalainen@jyu.fi</a>>
                            wrote:<br class="">
                            <br class="">
                            Hi! <br class="">
                            I am trying to get transparent  background
                            in png pictures, but it is not working and I
                            get error “Cannot determine format for".
                            Only way to get this is by using command
                            line? I am writing something like:<br
                              class="">
                            <br class="">
                            save  C:\Users\a\Desktop\k [ format  png ] [
                            supersample 4 ] [ transparentBackground
                             true ]<br class="">
                            <br class="">
                            or<br class="">
                            <br class="">
                            save C:\Users\a\Desktop\k format png
                            supersample 4 transparentBackground true<br
                              class="">
                            Also, I have tried different variations. <br
                              class="">
                            Regards,<br class="">
                            Mikael<br class="">
                          </blockquote>
                          <br class="">
                          <br class="">
_______________________________________________<br class="">
                          ChimeraX-users mailing list<br class="">
                          <a href="mailto:ChimeraX-users@cgl.ucsf.edu"
                            class="" moz-do-not-send="true">ChimeraX-users@cgl.ucsf.edu</a><br
                            class="">
                          Manage subscription:<br class="">
                          <a
                            href="https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users"
                            class="" moz-do-not-send="true">https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users</a><br
                            class="">
                          <br class="">
                        </div>
                      </div>
                    </blockquote>
                  </div>
                  <br class="">
                </div>
              </div>
              _______________________________________________<br
                class="">
              ChimeraX-users mailing list<br class="">
              <a href="mailto:ChimeraX-users@cgl.ucsf.edu" class=""
                moz-do-not-send="true">ChimeraX-users@cgl.ucsf.edu</a><br
                class="">
              Manage subscription:<br class="">
              <a class="moz-txt-link-freetext" href="https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users">https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users</a><br
                class="">
            </div>
          </blockquote>
        </div>
        <br class="">
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
ChimeraX-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ChimeraX-users@cgl.ucsf.edu">ChimeraX-users@cgl.ucsf.edu</a>
Manage subscription:
<a class="moz-txt-link-freetext" href="https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users">https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>