<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Question2Answer Q&amp;A - Recent questions tagged convert</title>
<link>https://www.question2answer.org/qa/tag/convert</link>
<description>Powered by Question2Answer</description>
<item>
<title>How can I convert the (+) to (-) in URL?</title>
<link>https://www.question2answer.org/qa/93036/how-can-i-convert-the-to-in-url</link>
<description>

&lt;p&gt;Usually Q2A default url structure looks like:&amp;nbsp;&lt;strong&gt;www.example.com/1234/there+is+a+example.&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;But I want convert '&lt;strong&gt;there+is+a+example'&amp;nbsp;&lt;/strong&gt;to '&lt;strong&gt;there-is-a-example'.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;span style=&quot;color:#27ae60&quot;&gt;&lt;strong&gt;How can I do that?&amp;nbsp;&lt;/strong&gt;&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/93036/how-can-i-convert-the-to-in-url</guid>
<pubDate>Sun, 09 May 2021 06:33:22 +0000</pubDate>
</item>
<item>
<title>Convert answer to comment TO post - How to default-select the question?</title>
<link>https://www.question2answer.org/qa/78134/convert-answer-comment-post-how-default-select-the-question</link>
<description>Quite interesting thing a user requested. As soon as you click on EDIT (your answer) and then the checkbox &amp;quot;convert my answer to a comment&amp;quot;, the last answer post (if answers exist) is selected in the dropdown.&lt;br /&gt;
&lt;br /&gt;
My user (and I agree with her) said it would be better to default-select the question in the dropdown, so the answer given becomes a comment to the question (instead of any other answer given).&lt;br /&gt;
&lt;br /&gt;
Trying to hack the according question-post.php I could not find a way of how to change the &amp;quot;selected&amp;quot; option. It should be somewhere in $commentonoptions.&lt;br /&gt;
&lt;br /&gt;
Anyone?&lt;br /&gt;
&lt;br /&gt;
PS: Probably would make sense to change that in core.</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/78134/convert-answer-comment-post-how-default-select-the-question</guid>
<pubDate>Thu, 26 Sep 2019 10:23:27 +0000</pubDate>
</item>
<item>
<title>How to convert post url into roman letters?</title>
<link>https://www.question2answer.org/qa/55853/how-to-convert-post-url-into-roman-letters</link>
<description>

&lt;p&gt;I have my Q2A website in Georgian language. So URLs look horrible when linked on other sites. RSS feed also becomes useless. Is there any plugin or code snippet to convert non roman letters into roman in URLs?&lt;/p&gt;

&lt;h3&gt;
&lt;br&gt;&lt;span style=&quot;font-size:14px&quot;&gt;&lt;strong&gt;I need this &lt;/strong&gt;&lt;/span&gt;&lt;span style=&quot;font-size:11px&quot;&gt;&lt;strong&gt;(This is how original look: &lt;/strong&gt;&lt;span style=&quot;color:rgb(29, 33, 41); font-family:helvetica,arial,sans-serif&quot;&gt;index.php/11/ბმული)&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;

&lt;p&gt;index.php/11/%E1%83%91%E1%83%9B%E1%83%A3%E1%83%9A%E1%83%98&lt;/p&gt;

&lt;h3&gt;&lt;strong&gt;&lt;span style=&quot;color:#1d2129; font-family:helvetica,arial,sans-serif&quot;&gt;&lt;span style=&quot;font-size:14px&quot;&gt;to be converted into this&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/h3&gt;

&lt;p&gt;index.php/11/bmuli&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/55853/how-to-convert-post-url-into-roman-letters</guid>
<pubDate>Wed, 18 Jan 2017 04:05:28 +0000</pubDate>
</item>
<item>
<title>Migration of your existing sites to Q2A</title>
<link>https://www.question2answer.org/qa/53867/migration-of-your-existing-sites-to-q2a</link>
<description>

&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I'm a experienced developer and can convert your site to Q2A.&lt;/p&gt;

&lt;p&gt;If you have any custom development request, please post at&amp;nbsp;&lt;a rel=&quot;nofollow&quot; href=&quot;http://vevion.net/forum/forums/custom-development.9/&quot;&gt;http://vevion.net/forum/forums/custom-development.9/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Regards&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/53867/migration-of-your-existing-sites-to-q2a</guid>
<pubDate>Sat, 24 Sep 2016 14:08:00 +0000</pubDate>
</item>
<item>
<title>Plugin idea auto convert question link to question title link. SEO</title>
<link>https://www.question2answer.org/qa/34931/plugin-idea-auto-convert-question-link-question-title-link</link>
<description>

&lt;p&gt;
	Plugin idea auto convert question link to question title link.&lt;/p&gt;


&lt;p&gt;
	Example:&lt;/p&gt;


&lt;p&gt;
	I'm add question or answer question link. &amp;nbsp;&lt;a href=&quot;http://www.question2answer.org/qa/27282/&quot; rel=&quot;nofollow&quot;&gt;http://www.question2answer.org/qa/27282/&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;
	This is question link auto convert Title link.&lt;/p&gt;


&lt;p&gt;
	&lt;a rel=&quot;nofollow&quot; href=&quot;http://www.question2answer.org/qa/27282/&quot;&gt;&lt;strong&gt;How to convert URL to TITLE in Q2A?&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	This is title link and Google backlink up. SEO&lt;/p&gt;</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/34931/plugin-idea-auto-convert-question-link-question-title-link</guid>
<pubDate>Thu, 05 Jun 2014 08:51:15 +0000</pubDate>
</item>
<item>
<title>Tips: Notification Pro on RTL theme</title>
<link>https://www.question2answer.org/qa/34281/tips-notification-pro-on-rtl-theme</link>
<description>

&lt;p&gt;
	We confirmed that &quot;&lt;a rel=&quot;nofollow&quot; href=&quot;http://www.question2answer.org/qa/25217&quot;&gt;Notification Pro&lt;/a&gt;&quot; work well on RTL theme. Convert style sheets with &lt;a href=&quot;http://cssjanus.commoner.com/&quot; rel=&quot;nofollow&quot;&gt;CSSJanus&lt;/a&gt;&amp;nbsp;from LTR to RTL format.&amp;nbsp;This tool is so cool.&lt;/p&gt;


&lt;p&gt;
	Files which you should convert for NP:&lt;/p&gt;


&lt;ul&gt;
	

&lt;li&gt;
		qa-plugin/infinite-ajax-scroll/css/jquery.ias.css&lt;/li&gt;
	

&lt;li&gt;
		qa-plugin/jquery-ui-form/css/jquery-ui-1.10.3.custom.min.css&lt;/li&gt;
	

&lt;li&gt;
		qa-plugin/jquery-ui-form/css/qa-juf.css&lt;/li&gt;
	

&lt;li&gt;
		qa-plugin/notification-pro/css/jquery-ui-1.10.3.custom.min.css&lt;/li&gt;
	

&lt;li&gt;
		qa-plugin/notification-pro/css/perfect-scrollbar-0.4.4.min.css&lt;/li&gt;
	

&lt;li&gt;
		qa-plugin/notification-pro/css/perfect-scrollbar.css&lt;/li&gt;
	

&lt;li&gt;
		qa-plugin/notification-pro/css/qa-np-stats-style.css&lt;/li&gt;
	

&lt;li&gt;
		qa-plugin/notification-pro/css/qa-np-user-common.css&lt;/li&gt;
	

&lt;li&gt;
		qa-plugin/notification-pro/css/qa-np-user-page.css&lt;/li&gt;
	

&lt;li&gt;
		qa-plugin/notification-pro/css/qa-np-user-parts.css&lt;/li&gt;
	

&lt;li&gt;
		qa-plugin/notification-pro/css/qa-np-user-setting.css&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;
	Try &lt;a href=&quot;http://www.question2answer.org/qa/user/sama55&quot; rel=&quot;nofollow&quot;&gt;my other plugins&lt;/a&gt; to need style sheet on RTL theme.&lt;/p&gt;


&lt;p&gt;
	Thanks&lt;/p&gt;</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/34281/tips-notification-pro-on-rtl-theme</guid>
<pubDate>Thu, 08 May 2014 05:05:24 +0000</pubDate>
</item>
<item>
<title>Cant convert to comments after 1.6.3 update</title>
<link>https://www.question2answer.org/qa/31443/cant-convert-to-comments-after-1-6-3-update</link>
<description>I am not longer able to convert answers to comments, here is what happens to me.&lt;br /&gt;
&lt;br /&gt;
I hit convert to comment, the edit thing comes up. I can only convert it to commet for the main question and not to other answers as I was able before.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
How can I fix this ?&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
Thanks.</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/31443/cant-convert-to-comments-after-1-6-3-update</guid>
<pubDate>Tue, 04 Feb 2014 13:56:06 +0000</pubDate>
</item>
<item>
<title>Feature Request for 1.6.4: Convert Comment to Answer</title>
<link>https://www.question2answer.org/qa/29029/feature-request-for-1-6-4-convert-comment-to-answer</link>
<description>

&lt;p&gt;
	That is my time consuming, programmer's workaround: &lt;a href=&quot;http://www.question2answer.org/qa/25824/convert-comment-to-answer-mysql-for-now&quot; rel=&quot;nofollow&quot;&gt;http://www.question2answer.org/qa/25824/convert-comment-to-answer-mysql-for-now&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;
	I guess, it would be helpful for &lt;span style=&quot;text-decoration: underline;&quot;&gt;many&lt;/span&gt; users to have the option (similar to the answer edit), to convert a comment into an answer.&lt;/p&gt;


&lt;p&gt;
	If you want this feature, please vote for this post so that gidgreen (the main q2a developer) will notice.&lt;/p&gt;


&lt;p&gt;
	Thanks,
&lt;br&gt;
	Kai&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	NOTE: I know that it could be problematic to decide if the following comments belong to the answer or to the other comments above. My suggestion: &lt;strong&gt;Instead of moving&lt;/strong&gt; the comment to the answer, &lt;strong&gt;copy&lt;/strong&gt; the comment to a new answer. The other comment can maintain or can be deleted manually then.&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/29029/feature-request-for-1-6-4-convert-comment-to-answer</guid>
<pubDate>Thu, 14 Nov 2013 02:23:18 +0000</pubDate>
</item>
<item>
<title>How to convert from URL string to HTML anchor tag</title>
<link>https://www.question2answer.org/qa/28112/how-to-convert-from-url-string-to-html-anchor-tag</link>
<description>

&lt;p&gt;
	I want to convert URL string in email contents sent by Q2A into HTML.&amp;nbsp;It is not converted even if I carry out sample code below.&amp;nbsp;$urltext and&amp;nbsp;$urlhtml are same... Please teach me condition converted in the regular expression of &lt;span style=&quot;color:#ff0000;&quot;&gt;qa_html_convert_urls&lt;/span&gt;() function.&amp;nbsp;&lt;/p&gt;


&lt;blockquote&gt;
	

&lt;div&gt;
		$urltext = 'http://localhost/aaa/bbb/ccc';&lt;/div&gt;
	

&lt;div&gt;
		$viewer = &lt;span style=&quot;color:#ff0000;&quot;&gt;qa_load_viewer&lt;/span&gt;($urltext, 'html');&lt;/div&gt;
	

&lt;div&gt;
		$utlhtml = $viewer-&amp;gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;get_html&lt;/span&gt;($urltext, 'html', array('showurllinks' =&amp;gt; true));&lt;/div&gt;
&lt;/blockquote&gt;


&lt;div&gt;
	Best regards.&lt;/div&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/28112/how-to-convert-from-url-string-to-html-anchor-tag</guid>
<pubDate>Sat, 12 Oct 2013 00:09:59 +0000</pubDate>
</item>
<item>
<title>convert wordpress plugin to question2answer</title>
<link>https://www.question2answer.org/qa/26294/convert-wordpress-plugin-to-question2answer</link>
<description>

&lt;p&gt;
	how can i convert a wordpress plugin to question2answer plugin!&lt;/p&gt;


&lt;p&gt;
	&lt;a rel=&quot;nofollow&quot; href=&quot;http://www.Areeh.com&quot;&gt;http://www.Areeh.com&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/26294/convert-wordpress-plugin-to-question2answer</guid>
<pubDate>Fri, 02 Aug 2013 13:11:56 +0000</pubDate>
</item>
<item>
<title>Convert Comment to Answer - MySql for now</title>
<link>https://www.question2answer.org/qa/25824/convert-comment-to-answer-mysql-for-now</link>
<description>

&lt;p&gt;
	It is just a tip, as this feature is not yet built in (v1.6.2).&lt;/p&gt;


&lt;p&gt;
	You have a comment that is actually the answer and you want to &lt;strong&gt;convert comment -&amp;gt; answer.&lt;/strong&gt;&lt;/p&gt;


&lt;p&gt;
	1. you open phpmysqladmin&lt;/p&gt;


&lt;p&gt;
	2. you open qa_posts and you search for the postid of the comment (see the anchor! #12345 of the commented link)&lt;/p&gt;


&lt;p&gt;
	3. change type from &quot;C&quot; to &quot;A&quot;&lt;/p&gt;


&lt;p&gt;
	4. /admin/stats and click &quot;Recount Posts&quot; to clean up.&lt;/p&gt;


&lt;p&gt;
	done.&lt;/p&gt;


&lt;p&gt;
	Hope that helps.&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/25824/convert-comment-to-answer-mysql-for-now</guid>
<pubDate>Fri, 19 Jul 2013 11:28:57 +0000</pubDate>
</item>
<item>
<title>Tip: Resize JPG images on upload</title>
<link>https://www.question2answer.org/qa/18980/tip-resize-jpg-images-on-upload</link>
<description>

&lt;p&gt;
	I am continuing the development of &quot;qa-wysiwyg-upload.php&quot; to resize images if they are too big in their dimensions.&lt;/p&gt;


&lt;p&gt;
	What I have so far is working for JPG/JPEG and might help you already:&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;color:#0000ff;&quot;&gt;&lt;span style=&quot;font-family: lucida sans unicode,lucida grande,sans-serif;&quot;&gt;// new: check image size, if it is too big resize it
&lt;br&gt;
	$resizedFlag = false;
&lt;br&gt;
	$maxImgWidth = 900; // define maximal image width
&lt;br&gt;
	if (empty($message)) {
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;$fileImgCheck = getimagesize($file['tmp_name']);
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;switch ($fileImgCheck['mime']) {
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;case &quot;image/jpeg&quot;:
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;// create image from file
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$src = imagecreatefromjpeg($file['tmp_name']);
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;// get original size of uploaded image
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;list($width,$height) = getimagesize($file['tmp_name']);
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;if($width&amp;gt;$maxImgWidth) {
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;// resize the image to maxImgWidth, maintain the original aspect ratio
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$newwidth = $maxImgWidth;
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$newheight=($height/$width)*$newwidth;
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$newImage=imagecreatetruecolor($newwidth,$newheight);
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;// do the image resizing by copying from the original into $newImage image
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;imagecopyresampled($newImage,$src,0,0,0,0,$newwidth,$newheight,$width,$height);
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;// write image to buffer and save in variable
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;ob_start(); // Stdout --&amp;gt; buffer
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;imagejpeg($newImage,NULL,75); // last parameter is jpg quality, see also &lt;a href=&quot;http://php.net/manual/en/function.imagejpeg.php&quot; rel=&quot;nofollow&quot;&gt;http://php.net/manual/en/function.imagejpeg.php&lt;/a&gt;
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$newImageToSave = ob_get_contents(); // store stdout in $newImageToSave
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;ob_end_clean(); // clear buffer
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;// remove images from php buffer
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;imagedestroy($src);
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;imagedestroy($newImage);
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$resizedFlag = true;
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;break; // END jpeg
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;default:
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;// continue, no resizing needed
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;
	}&lt;/span&gt;&lt;/span&gt;
&lt;br&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	If you implement this, you need to change the following line as well, so that it saves the resized file:&lt;/p&gt;


&lt;p&gt;
	from:
&lt;br&gt;
	&lt;span style=&quot;color:#0000cd;&quot;&gt;$blobid=qa_db_blob_create(file_get_contents($file['tmp_name']), $extension, @$file['name'], $userid, $cookieid, qa_remote_ip_address());&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	to:
&lt;br&gt;
	&lt;span style=&quot;color:#0000ff;&quot;&gt;// added: save resized image instead of original
&lt;br&gt;
	if($resizedFlag) {
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;$blobid=qa_db_blob_create($newImageToSave, $extension, @$file['name'], $userid, $cookieid, qa_remote_ip_address());
&lt;br&gt;
	}
&lt;br&gt;
	else {
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;$blobid=qa_db_blob_create(file_get_contents($file['tmp_name']), $extension, @$file['name'], $userid, $cookieid, qa_remote_ip_address());
&lt;br&gt;
	}&lt;/span&gt;
&lt;br&gt;
	
&lt;br&gt;
	
&lt;br&gt;
	Cheers, Kai&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/18980/tip-resize-jpg-images-on-upload</guid>
<pubDate>Tue, 06 Nov 2012 14:06:19 +0000</pubDate>
</item>
<item>
<title>Resize uploaded images (PHP/serverside)?</title>
<link>https://www.question2answer.org/qa/18729/resize-uploaded-images-php-serverside</link>
<description>

&lt;p&gt;
	Is there any way I can resize uploaded images to a smaller size?
&lt;br&gt;
	
&lt;br&gt;
	E.g. somebody uploads an image of 1800 x 1800, and I would like to reduce the size to 800x800 max.
&lt;br&gt;
	
&lt;br&gt;
	Would be saving big amounts of database storage. Esp. if there is no encoding of the images → can we convert them actually for better encoding?&lt;/p&gt;


&lt;p&gt;
	Here is an example of a PNG of my users (it has &lt;strong&gt;418 KB°!)&lt;/strong&gt;&lt;/p&gt;


&lt;p&gt;
	&lt;img alt=&quot;skizze2.png&quot; src=&quot;http://www.question2answer.org/qa/?qa=blob&amp;amp;qa_blobid=7507776871088009258&quot;&gt;&lt;/p&gt;


&lt;p&gt;
	Using the image editor XNView and saving it again I have a PNG of only 16 KB°!&lt;/p&gt;


&lt;p&gt;
	&lt;img alt=&quot;skizze2_opt&quot; src=&quot;http://www.question2answer.org/qa/?qa=blob&amp;amp;qa_blobid=17751045111889178274&quot; style=&quot;width: 444px; height: 322px;&quot;&gt;&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/18729/resize-uploaded-images-php-serverside</guid>
<pubDate>Mon, 29 Oct 2012 07:34:33 +0000</pubDate>
</item>
<item>
<title>Can we convert uploaded BMP images to PNG? + Bug?</title>
<link>https://www.question2answer.org/qa/18726/can-we-convert-uploaded-bmp-images-to-png-bug</link>
<description>

&lt;p&gt;
	I just realized that some of my users start uploading BMP files that are quite big (up to 1 MB).
&lt;br&gt;
	
&lt;br&gt;
	Is there any option to convert uploaded BMP images to PNG?&lt;/p&gt;


&lt;p&gt;
	-- EDIT:
&lt;br&gt;
	Absolutely weird, I download the file that was uploaded by one of my users. Now I try to upload it here and in my forum as well. Both give me the error notice:&lt;/p&gt;


&lt;p&gt;
	&lt;strong&gt;The image could not be read. Please upload one of: GIF, JPG, PNG&lt;/strong&gt;&lt;/p&gt;


&lt;p&gt;
	So how was my user able to upload the image?&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;color:#000000;&quot;&gt;-- UPDATE:
&lt;br&gt;
	I checked qa_blobs table and see that the uploaded images are in file format PNG. However, q2a displays them as BMP? Is this a bug?&lt;/span&gt;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/18726/can-we-convert-uploaded-bmp-images-to-png-bug</guid>
<pubDate>Mon, 29 Oct 2012 07:14:14 +0000</pubDate>
</item>
</channel>
</rss>