Skip Navigation

[Resolved] Featured images cropped

This thread is resolved. Here is a description of the problem and solution.

Problem:
Featured image is cropped in a View, when uploading from CRED form.

Solution:
1. Use this shortcode in a View for full size featured image uploaded through CRED form:

 [wpv-post-featured-image size="full"] 

2. To have more control on CRED form image upload preview:
At moment this is not possible, it is submitted as a feature request to our team for further consideration.

Relevant Documentation:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-post-featured-image

This support ticket is created 7 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Our next available supporter will start replying to tickets in about 0.40 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 -
- 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 11 replies, has 2 voices.

Last updated by romanB-3 7 years, 3 months ago.

Assisted by: Noman.

Author
Posts
#557295

Hello,

I have several cred post forms with featured image, but every image is cropped when uploading... Why would that be ?

Thnak you

#557318

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi Roman,

Thank you for getting in touch with us. I am not able to reproduce this issue at my end. This is the shortcode for featured image in the cred form:

[cred_field field='_featured_image' value='' urlparam='' output='bootstrap']

1. Please share your Debug Information with us so we can see it? I have enabled debug info box for your next reply:
https://toolset.com/faq/provide-debug-information-faster-support/

2. Are you using wp featured image field or custom image field? Please provide back-end screenshot of the cred form and link to the page where I can see the issue.

Thank you

#557336

It's the native featured image field I am using alright.

Could you please activate private fields so I can give you the URL where you may see the problem ?
Thank you.

#557360

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Please provide temporary website WP-admin and FTP info for your site to debug further. Your next answer will be private which means only you and I have access to it.

=== Please backup your database and website ===

✙ I would additionally need your permission to de-activate and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important.

✙ Please add the Links to the [CRED form] Edit Screen and [Page link, CPT] where we can see the issue.

Thank you

#557623

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hello,

I have updated the shortcode in Content Template as this:

[wpv-post-featured-image size="full"] 

https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-post-featured-image

Now its displaying correct size: [link removed]

Thanks

#557633

1- Thank you, in deed iit's displaying OK now on supplier pages, but still not on edit and add supplier forms, which is annoying because the author of the post may be worried by the fact his logos are cropped.

2- On /fournisseur/ page, you may see each line has the logo in small (150x150). While uploading the files, it generates a 150x150 image, which is cropped. I'd prefer this image not to be cropped. For a 1500x800 image size for instance, it will be resized at 150x80.

3- Could you please delete the URL of the site in your previous answer ? Thank you.

#557723

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

1. Its default behavior of CRED, we load small image in the form preview because fullsize image will take more time to load (e.g. if someone upload 4mb image and its a standard / recommended WP approach), we do not have any option to change that. I am trying to see if I can find a workaround to that but chances are low at moment.

2. I have updated the View for /fournisseur/ page and it has all logo images in full size now.

3. Link removed

#557727

Thank you.

About 2., the images are now full size, which will be very heavy to load when we'll have several hundreds results. Wouldn't it be possible to replace the 150x150 default thumbnail to a thumbnail that would keep the image aspect ratio ?
Thank you.

#557807

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

1. For the CRED form preview image thumbnail, I have tried custom JS to forcefully change that but that did not help. You may be able to do that with some JS code or some other way. If you would like I can submit that as feature request to have more control on CRED form image upload preview.

2. For /fournisseur/ page I have used medium size now which has small size and with aspect ratio.

 [wpv-post-featured-image size="medium"] 

Thank you

#557819

2. Solved, Thank you very much.

1. Yes please. It would be great to be able to set the image preview on the cred.

#557822

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Ok great, I have now submitted this as a feature request to our team for further consideration.

Thank you for cooperation & feedback. Have a wonderful day.

#559152

Thank you !