[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"blog-dockerno-jpeg-support-in-this-php-build-in-docker":3},{"id":4,"slug":5,"title":6,"description":7,"content":8,"date":9,"image":10,"imageAlt":6,"author":11,"categories":14,"path":20,"minRead":21},128,"dockerno-jpeg-support-in-this-php-build-in-docker","[Docker]No JPEG support in this PHP build in Docker","No JPEG support in this PHP build in Docker 先前建置完OmekaS […]","\u003Ch1>No JPEG support in this PHP build in Docker\u003C\u002Fh1>\n\u003Cp>先前建置完OmekaS的Docker，運作一段時間後發現圖片出不來的狀況，然後會看到類似的訊息「....No JPEG support in this PHP build.....in GD.....」。\u003C\u002Fp>\n\u003Cp>透過phpinfo()呼叫php訊息會發現GD庫的列表中，獨缺JPEG support選項，表示目前運作的GD庫設定沒有啟用支援JPEG功能，於是得重新呼叫，作法很簡單，只要在Dockerfile中加上以下指令。\u003C\u002Fp>\n\u003Cpre>\u003Ccode class=\"language-yml\">...\n.....\nRUN docker-php-ext-configure gd --with-freetype --with-jpeg --enable-gd\nRUN docker-php-ext-install gd\n.....\n...\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>重新build後再up就正常了。\u003C\u002Fp>\n","2022-09-14T10:00:28","",{"name":12,"link":13},"Chih Fan","http:\u002F\u002Fpost.billxu.net",[15,18],{"name":16,"slug":17},"Devops","devops",{"name":19,"slug":19},"omekas","\u002Fblog\u002Fdockerno-jpeg-support-in-this-php-build-in-docker",1]