Home Forums Plugin Support WP User Frontend Pro WYSIWYG Image Size

This topic is: resolved

This topic contains 5 replies, has 3 voices, and was last updated by  dantheman1 6 years ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #4771

    dantheman1
    Participant
    Post count: 6

    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

    #4778

    Tareq Hasan
    Keymaster
    Post count: 2831

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

    #4811

    dantheman1
    Participant
    Post count: 6

    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

    #4813

    Mahi
    Member
    Post count: 1555

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

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

    #4825

    Tareq Hasan
    Keymaster
    Post count: 2831

    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.

    #4865

    dantheman1
    Participant
    Post count: 6

    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 6 posts - 1 through 6 (of 6 total)

The topic ‘WYSIWYG Image Size’ is closed to new replies.