<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
		>
	<channel>
		<title>WordPress Ideas &#187; Topic: Cure for the common upload HTTP Error</title>
		<link>https://wordpress.org/ideas/topic/cure-for-the-common-upload-http-error</link>
		<description>WordPress Ideas &#187; Topic: Cure for the common upload HTTP Error</description>
		<language>en-US</language>
		<pubDate>Sat, 10 Jun 2017 11:54:05 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1</generator>
				<atom:link href="https://wordpress.org/ideas/rss/topic/cure-for-the-common-upload-http-error" rel="self" type="application/rss+xml" />

		<item>
			<title>Ipstenu (Mika Epstein) on "Cure for the common upload HTTP Error"</title>
			<link>https://wordpress.org/ideas/topic/cure-for-the-common-upload-http-error#post-31863</link>
			<pubDate>Sun, 21 May 2017 04:15:33 +0000</pubDate>
			<dc:creator>Ipstenu (Mika Epstein)</dc:creator>
			<guid isPermaLink="false">31863@https://wordpress.org/ideas/</guid>
			<description><![CDATA[<p>We don't default to GD because it's slower and makes worse compressions.</p>
<p>HOWEVER. The core team is working on making Imagick work better, but a large part of the issue is that it's a PHP problem and not really a WordPress one.</p>
<p>The tl;dr summary? PHP has trouble processing large images. Sometimes it fails to resize and when it does, you get the HTTP error
</p>]]></description>
					</item>
		<item>
			<title>wilcosky on "Cure for the common upload HTTP Error"</title>
			<link>https://wordpress.org/ideas/topic/cure-for-the-common-upload-http-error#post-31856</link>
			<pubDate>Fri, 19 May 2017 01:41:10 +0000</pubDate>
			<dc:creator>wilcosky</dc:creator>
			<guid isPermaLink="false">31856@https://wordpress.org/ideas/</guid>
			<description><![CDATA[<p>Almost every WordPress user has experienced the frustrating HTTP Error when uploading an image. There are many pieces of advice out there about how to solve it. Add code to the .htaccess, contact your web host, increase memory, increase max allowed file size, etc. </p>
<p>Sometimes there's only one solution, that I've found, will solve the issue. That solution is to add the following code by Mike Schroder to your functions file (ideally child theme functions file). </p>
<p>This code makes WordPress default to the GD image editor. I'm not an expert, maybe it's not as good as the way WordPress normally uploads and edits images. But, I do know that without the following code, I will almost always get a HTTP Error when uploading a large image. However, after adding this code, the problem is gone. No matter how big of an image I upload (within reason). This isn't the first time this code has saved me. There must be something to it. </p>
<p>So, my idea is, why not set WordPress up this way by default? Or, at least have a setting one can click that automatically switches to this GD image editor. </p>
<p>The code I'm talking about:</p>
<p>function ms_image_editor_default_to_gd( $editors ) {<br />
	$gd_editor = 'WP_Image_Editor_GD';<br />
	$editors = array_diff( $editors, array( $gd_editor ) );<br />
	array_unshift( $editors, $gd_editor );<br />
	return $editors;<br />
}<br />
add_filter( 'wp_image_editors', 'ms_image_editor_default_to_gd' );</p>
<p>If this is a poor solution, then there must be another way. Some way to fix/change the way WordPress uploads images and creates thumbnails. The current way is buggy and many people have the same or similar issues. Media uploads are extremely important for any CMS or blogging platform. It's time for all the WordPress gurus to put their heads together and solve this. A quick Google search will prove this is a big issue.
</p>]]></description>
					</item>

	</channel>
</rss>
