Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Added the SVG content-type and ID to the list of supported image formats #4

Merged
merged 1 commit into from

2 participants

@webdevel

Added scalable vector graphic support. Added the SVG content-type and ID
to the list of supported image formats. This is related to the 'dot'
graph generator.

@webdevel webdevel Added scalable vector graphic support. Added the SVG content-type and ID
to the list of supported image formats. This is related to the 'dot'
graph generator.
6e987c7
@billf billf merged commit 469fe5a into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 28, 2011
  1. @webdevel

    Added scalable vector graphic support. Added the SVG content-type and ID

    webdevel authored
    to the list of supported image formats. This is related to the 'dot'
    graph generator.
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 0 deletions.
  1. +4 −0 xhprof_lib/utils/callgraph_utils.php
View
4 xhprof_lib/utils/callgraph_utils.php
@@ -25,6 +25,7 @@
"jpg" => 1,
"gif" => 1,
"png" => 1,
+ "svg" => 1, // support scalable vector graphic
"ps" => 1,
);
@@ -68,6 +69,9 @@ function xhprof_generate_mime_header($type, $length) {
case 'png':
$mime = 'image/png';
break;
+ case 'svg':
+ $mime = 'image/svg+xml'; // content type for scalable vector graphic
+ break;
case 'ps':
$mime = 'application/postscript';
default:
Something went wrong with that request. Please try again.