Wordpress单页:使用原始图片
Wordpress single page : using original images
作为一名摄影师,我需要我的照片清晰。当我将我的照片上传到我的 Wordpress 时,它们会以多种不同的方式调整大小。如果需要更长的时间,我想使用原始的而不是调整大小的。
正如您在下面的 link 中看到的,post 中的图像已调整大小:
<img src="https://www.pixelkomando.com/cont/2017/08/ORIGINAL-1160x770.jpg" width="1160" height="770">
但我想要:
<img src="https://www.pixelkomando.com/cont/2017/08/ORIGINAL.jpg" width="1160" height="770">
这是 link :https://www.pixelkomando.com/gare-de-durnal/
感谢您的帮助!
VFero
你可能想做类似 this 文章中的事情。
来自文章:
You can stop WordPress from generating default image sizes by visiting
Settings » Media in WordPress admin area. There you will see default
image sizes predefined by WordPress. You need to set these sizes to 0
which will prevent WordPress from generating default image sizes when
you upload a new image.
还有:
Find the theme size code in your theme’s functions.php file. Simply
look for the code line containing add_image_size() function. ... Removing these lines will stop your theme from generating those image sizes.
警告:
但请注意,这将迫使所有使用手机的人下载图像的原始版本。感谢@FluffyKitten 在评论中指出这一点。
作为一名摄影师,我需要我的照片清晰。当我将我的照片上传到我的 Wordpress 时,它们会以多种不同的方式调整大小。如果需要更长的时间,我想使用原始的而不是调整大小的。
正如您在下面的 link 中看到的,post 中的图像已调整大小:
<img src="https://www.pixelkomando.com/cont/2017/08/ORIGINAL-1160x770.jpg" width="1160" height="770">
但我想要:
<img src="https://www.pixelkomando.com/cont/2017/08/ORIGINAL.jpg" width="1160" height="770">
这是 link :https://www.pixelkomando.com/gare-de-durnal/
感谢您的帮助! VFero
你可能想做类似 this 文章中的事情。
来自文章:
You can stop WordPress from generating default image sizes by visiting Settings » Media in WordPress admin area. There you will see default image sizes predefined by WordPress. You need to set these sizes to 0 which will prevent WordPress from generating default image sizes when you upload a new image.
还有:
Find the theme size code in your theme’s functions.php file. Simply look for the code line containing add_image_size() function. ... Removing these lines will stop your theme from generating those image sizes.
警告:
但请注意,这将迫使所有使用手机的人下载图像的原始版本。感谢@FluffyKitten 在评论中指出这一点。