Post by billynoah » Fri Jul 03, 2015 4:04 am

Images with ICO filetype or mimetype "image/vnd.microsoft.icon" are not supported by GD library, will throw an error
in admin settings and will not display the image. Here's a simple workaround that will just render the ICO as is and still allow you to set it as store icon:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>

<modification>

	<id>Allow ICO in Admin Settings</id>
	<version>1</version>
	<vqmver>2.5.1</vqmver>
	<author>billynoah@zuma-design.com | zuma-design.com</author>

	<file name="admin/model/tool/image.php">
		<operation>
			<search position="after" index="1"><![CDATA[$new_image = ]]></search>
			<add><![CDATA[		if ($extension == 'ico') copy(DIR_IMAGE . $old_image, DIR_IMAGE . $new_image);]]></add>
		</operation>
	</file>

</modification>

Image


Active Member

Posts

Joined
Tue Jan 15, 2013 12:46 pm
Who is online

Users browsing this forum: No registered users and 4 guests