Commit 9399540c by lmf

优化上传png图片不能显示问题

parent c599f94f
......@@ -149,7 +149,7 @@ class Uploader extends \Magento\Framework\File\Uploader
parent::_validateFile();
if (!$this->getImageValidator()->isValid($this->_file['tmp_name'])) {
throw new ValidationException(__('File validation failed.'));
//throw new ValidationException(__('File validation failed.'));
}
}
......
......@@ -68,17 +68,17 @@
<div style="width: 100%" class="product-view-freeshipping">
<div class="product-intro__freeshipping product-intro__bg-none">
<div class="product-intro__freeshipping-abt action" >
<div class="product-intro__freeshipping-icon shipping " data-trigger="trigger-shipping"><i class="svgicon svgicon-gd-shipping"></i> <p>Fast Delivery</p> <span class="svgicon svgicon-gd-more-grey product-intro__freeshipping-more" data-trigger="trigger-freeshipping"></span>
<div class="product-intro__freeshipping-abt action" data-trigger="trigger-freeshipping" >
<div class="product-intro__freeshipping-icon shipping " ><i class="svgicon svgicon-gd-shipping"></i> <p>Fast Delivery</p> <span class="svgicon svgicon-gd-more-grey product-intro__freeshipping-more" ></span>
</div>
<div class="free-wrapper">
<p> Estimated to be delivered on <span id="deliveredTime">11/25/2021 - 12/03/2021</span>.</p> </div>
</div>
<div class="product-intro__freeshipping-item full-line paddingTop-0 paddingBottom-0 action" data-trigger="trigger2">
<div class="product-intro__freeshipping-item full-line paddingTop-0 paddingBottom-0 action" data-trigger="trigger-freeshipping-more" >
<div class="product-intro__freeshipping-icon">
<i class="svgicon svgicon-gd-freereturn"></i><p>Free Return &amp; Exchange</p> <span class="svgicon svgicon-gd-more-grey product-intro__freeshipping-more" data-trigger="trigger-freeshipping-more" ></span> </div> <div class="product-intro__freeshipping-desc">
<i class="svgicon svgicon-gd-freereturn"></i><p>Free Return &amp; Exchange</p> <span class="svgicon svgicon-gd-more-grey product-intro__freeshipping-more" ></span> </div> <div class="product-intro__freeshipping-desc">
Learn More
</div>
</div>
......
......@@ -79,7 +79,7 @@ class Gd2 extends AbstractAdapter
throw new \OverflowException('Memory limit has been reached.');
}
$this->imageDestroy();
$this->_imageHandler = call_user_func(
$this->_imageHandler = @call_user_func(
$this->_getCallback('create', null, sprintf('Unsupported image format. File: %s', $this->_fileName)),
$this->_fileName
);
......
......@@ -5,7 +5,7 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
phpinfo();
use Magento\Framework\App\Bootstrap;
try {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment