May 4, 2011

Crop Images | CyberSEO Pro | Support Forum

Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_TopicIcon
Crop Images
Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 (0 votes) 
July 10, 2020
2:35 am
Avatar
cseo17796
Member
Members
Forum Posts: 5
Member Since:
August 3, 2017
sp_UserOfflineSmall Offline

Hi,

is there a way to get cropped the images by specified height and width size?

Thanks!

July 10, 2020
8:04 am
Avatar
CyberSEO
Admin
Forum Posts: 3672
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline

Only scaling it’s possible, but right now only via custom PHP code (Advanced -> PHP code ). There you can use a special function:

cseo_save_image ( string $image_url [, string $preferred_name = ”] [, string $width = 0] [, string $height = 0] [, int $compression = 0] ) : string

It saves the image located by the given URL at your host and returns it’s local URL. You may specify desired with and height (in pixels or in percents of the source image) as well as the compression level. E.g.:

Login to see the code

So the original image will be scaled to 120×120 pixels and saved at your host. As far as I know there are special plugins and even themes, that can crop the images.

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 541

Currently Online:
8 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

ninja321: 84

s.baryshev.aoasp: 64

Freedom: 61

MediFormatica: 49

B8europe: 47

saviulisse67: 45

Member Stats:

Guest Posters: 338

Members: 2633

Moderators: 0

Admins: 1

Forum Stats:

Groups: 1

Forums: 5

Topics: 1533

Posts: 7746

Newest Members:

t.schleiser, worldnetsites, janodamek, socialbiz4themasses, suren.manvelyan.sv, Darick

Administrators: CyberSEO: 3672