Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+3 votes
694 views
in Q2A Core by

I need to resize images not the size(kb) i mean dimensions..because it geing out of body if anyone upload big size pics..so want to make maximum width as 600 and height proportionally  to width / keeping the aspect

i am using markdown edior

Thanx in advance

 

by
Hey, how do you use markdown editor to upload images?

2 Answers

0 votes
by
You can use the solution here (last answer):

http://www.question2answer.org/qa/15070/does-anybody-know-here-how-to-store-blob-image-as-normal-image

You just have to modify one file in qa-include: qa-db-blobs.php and to add a new subdirectory .

For me it works as well with 1.5.3

It is not editor specific as it it intercepts the standard blob saving process.

You still can change the code to only change larger images or similar.

I wrote that and for me it works very well, but i am as well sure that it could be more efficient...

 

How do You upload images through markdown editor ?
0 votes
by

use css styles:

.entry-content img { max-width: 600px; border:1px solid #AAAAAA; }

The border is defined here, in case you link the images (gives thick blue border in IE).

 

from old answer / question: http://www.question2answer.org/qa/5589/image-auto-resize-function

...