Support

Home Forums Event Espresso Premium Image Size in Ticket Still Too Large

Image Size in Ticket Still Too Large

Posted: May 23, 2017 at 10:22 pm

Viewing 1 reply thread


website@secpta.net

May 23, 2017 at 10:22 pm

Hello,

In the previous post as follows…
https://eventespresso.com/topic/need-to-scale-down-image-size-in-the-ticket/

…a short code “[EVENT_IMAGE_* width=250 height=250]” is provided at the bottom.

Is there a way to use the shortcode with a % reduction instead? If I use the pixel reduction the image actually gets incorrectly compressed visually.

Thanks!


Tony

  • Support Staff

May 24, 2017 at 5:16 am

Hi there,

The width and height shortcode attributes are output as part of the img tag:

<img src="example.com" alt="example" . $width . $height />

$width and $height will either be “width=x” and “heigh=x” or they will be an empty string.

The shortcode by default uses the ‘thumbnail’ image size, which unless your theme has updated will be 150px by 150px, so you’ll be displaying a 150×150 image at 250×250 with the above shortcode, meaning it’s not being compressed but stretched.

If you want to display and image at 250×250 try:

[EVENT_IMAGE_* size=medium width=250 height=250]

By default WP creates an image 300×300 for ‘medium’ and then the above shortcode will output that image and set the width/height to 250×250.

Viewing 1 reply thread

The support post ‘Image Size in Ticket Still Too Large’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso