Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 210 for png (0.02 seconds)

  1. docs/en/docs/img/sponsors/greptile.png

    greptile.png...
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Dec 01 20:06:57 GMT 2025
    - 7.2K bytes
    - Click Count (0)
  2. docs/en/docs/img/sponsors/greptile-banner.png

    greptile-banner.png...
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Dec 01 20:06:57 GMT 2025
    - 7.1K bytes
    - Click Count (0)
  3. docs_src/additional_responses/tutorial002_py39.py

        response_model=Item,
        responses={
            200: {
                "content": {"image/png": {}},
                "description": "Return the JSON item or an image.",
            }
        },
    )
    async def read_item(item_id: str, img: Union[bool, None] = None):
        if img:
            return FileResponse("image.png", media_type="image/png")
        else:
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 628 bytes
    - Click Count (0)
  4. docs_src/additional_responses/tutorial004_py39.py

    
    app = FastAPI()
    
    
    @app.get(
        "/items/{item_id}",
        response_model=Item,
        responses={**responses, 200: {"content": {"image/png": {}}}},
    )
    async def read_item(item_id: str, img: Union[bool, None] = None):
        if img:
            return FileResponse("image.png", media_type="image/png")
        else:
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 701 bytes
    - Click Count (0)
  5. tests/test_tutorial/test_additional_responses/test_tutorial004.py

    
    def test_path_operation_img(client: TestClient):
        shutil.copy("./docs/en/docs/img/favicon.png", "./image.png")
        response = client.get("/items/foo?img=1")
        assert response.status_code == 200, response.text
        assert response.headers["Content-Type"] == "image/png"
        assert len(response.content)
        os.remove("./image.png")
    
    
    def test_openapi_schema(client: TestClient):
        response = client.get("/openapi.json")
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 4.9K bytes
    - Click Count (0)
  6. tests/test_tutorial/test_additional_responses/test_tutorial002.py

    
    def test_path_operation_img(client: TestClient):
        shutil.copy("./docs/en/docs/img/favicon.png", "./image.png")
        response = client.get("/items/foo?img=1")
        assert response.status_code == 200, response.text
        assert response.headers["Content-Type"] == "image/png"
        assert len(response.content)
        os.remove("./image.png")
    
    
    def test_openapi_schema(client: TestClient):
        response = client.get("/openapi.json")
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 4.7K bytes
    - Click Count (0)
  7. docs/en/data/sponsors.yml

        img: https://fastapi.tiangolo.com/img/sponsors/propelauth.png
      - url: https://zuplo.link/fastapi-gh
        title: 'Zuplo: Deploy, Secure, Document, and Monetize your FastAPI'
        img: https://fastapi.tiangolo.com/img/sponsors/zuplo.png
      - url: https://liblab.com?utm_source=fastapi
        title: liblab - Generate SDKs from FastAPI
        img: https://fastapi.tiangolo.com/img/sponsors/liblab.png
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Dec 01 20:06:57 GMT 2025
    - 4.6K bytes
    - Click Count (0)
  8. docs_src/additional_responses/tutorial004_py310.py

    
    app = FastAPI()
    
    
    @app.get(
        "/items/{item_id}",
        response_model=Item,
        responses={**responses, 200: {"content": {"image/png": {}}}},
    )
    async def read_item(item_id: str, img: bool | None = None):
        if img:
            return FileResponse("image.png", media_type="image/png")
        else:
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 10 08:55:32 GMT 2025
    - 669 bytes
    - Click Count (0)
  9. src/main/assemblies/files/generate-thumbnail

        exit 1
      fi
      tmp_png_prefix=/tmp/thumbnail.png.$$
      pdftoppm -png -singlefile ${tmp_pdf_file} ${tmp_png_prefix}
      tmp_png_file="${tmp_png_prefix}.png"
      rm -f ${tmp_pdf_file}
      if [[ ! -f ${tmp_png_file} ]] ; then
        echo "pdftoppm does not work."
        exit 1
      fi
      ${im_cmd} -thumbnail ${image_size} ${tmp_png_file} "${output_file}"
      rm -f ${tmp_png_prefix}*png
    elif [[ x"${cmd_type}" = "xpdf" ]] ; then
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Thu Dec 04 08:02:36 GMT 2025
    - 3.9K bytes
    - Click Count (0)
  10. docs/en/overrides/main.html

          </a>
        </div>
        <div class="item">
          <a title="Zuplo: Scale, Protect, Document, and Monetize your FastAPI" style="display: block; position: relative;" href="https://zuplo.link/fastapi-web" target="_blank">
            <span class="sponsor-badge">sponsor</span>
            <img class="sponsor-image" src="/img/sponsors/zuplo-banner.png" />
          </a>
        </div>
        <div class="item">
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Dec 01 20:06:57 GMT 2025
    - 5.5K bytes
    - Click Count (0)
Back to Top