icemanpro
V2EX  ›  问与答

jpgraph 动态生成小图像出错.

  •  
  •   icemanpro · Jun 23, 2014 · 2749 views
    This topic created in 4428 days ago, the information mentioned may be changed or developed.
    同样代码,如果图像的width和height小于100,则返回的是乱码文本,而非图像.其header中Content-Type为text/html.

    但以width,height 为800的话,则可以正常显示图像.

    大图:https://api.oiluser.cn/public/index.php/worldOilPrices/v1/WTI/img/800/600
    小图:https://api.oiluser.cn/public/index.php/worldOilPrices/v1/WTI/img/100/100

    这个是怎么回事?
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   857 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 20:24 · PVG 04:24 · LAX 13:24 · JFK 16:24
    ♥ Do have faith in what you're doing.