WYSIWYG Image Size

This topic contains 5 reply and 3 voices, and was last updated by dantheman1 10 years, 10 months ago
Viewing 5 Posts - 1 through 5 (of 5 total)
Author Posts
June 11, 2013 at 2:59 am 4771
dantheman1 Is there a way to set a default image size for the uploaded images in the WYSIWYG editor? For example I would like to keep the original size files, but have the images inserted into the post at wordpress's "medium size default" or no larger than a certain pixel size. Is this a functionality / possibility currently? I couldn't really find any information on this. This is my last little configuration I need to do before I can have all my forms live and submit a testimonial. I appreciate all the help and great support provided so far! - Dan
June 11, 2013 at 7:49 am 4778
Tareq Hasan Tareq Hasan

You already created a topic for this and I answered you!

June 12, 2013 at 1:53 am 4811
dantheman1 dantheman1

Hi Tareq,

I posted this one separately hoping that the two questions would not be confused with each other. Sorry for the miscommunication, I saw the other response and it worked perfectly!

This question here is referring to the actual image size within the post after it has been uploaded. The example screen shot below shows after the image has been inserted and is displayed full size which is way to large for the post.

Large Image

What I was referring to by “medium size” was the default “insert option” on wordpress shown in the screen shot below.

Medium Image

Is there a way to use the “medium size” image by default or set a max height/width of the image that gets inserted to the post while keeping the full resolution one as well? I didn’t see any options for this in the settings?

Sorry for the confusion and thanks for all the help!

– Dan

June 12, 2013 at 2:06 am 4813
Mahi Mahi

I believe easiest way to do it by tweaking core WordPress functions. hints here.

WPUF nothing doing to images,posting – using default WordPress functions.

June 12, 2013 at 12:17 pm 4825
Tareq Hasan Tareq Hasan

For the image thumbnail, you’ll be needing to change a bit of code again. It’s the /class/upload.php line 62.
[php]$response[‘html’] = wp_get_attachment_image( $attach[‘attach_id’], ‘full’ );[/php]

Change the code to this:
[php]$response[‘html’] = wp_get_attachment_link( $attach[‘attach_id’] );[/php]

It’ll show the thumbnail sized image with link to the full version.

June 13, 2013 at 1:03 am 4865
dantheman1 dantheman1

Tareq,

Exactly what I was looking to do! Thanks for your help and quick responses. I am now able to complete all my forms with the expectations I had in mind. Once they are finished I will submit a testimonial with the link you provided in the other thread!

Thanks Again,
Dan

Viewing 5 Posts - 1 through 5 (of 5 total)