May 4, 2011

Resize RSS 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_Related Related Topics sp_TopicIcon
Resize RSS Images?
Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 (0 votes) 
January 3, 2012
9:13 pm
Avatar
Johnny Wadd
Guest
Guests

Can your plugin automatically resize rss images to my requirement?

If so, how is that done?

This plugin is fantastic….

January 5, 2012
5:23 pm
Avatar
CyberSEO
Admin
Forum Posts: 3666
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline

Do you mean the resizing of locally stored images, or just changing the “height” and “width” parameters of the “<img>” tag?

January 5, 2012
5:57 pm
Avatar
Johnny Wadd
Guest
Guests

I would like to see your app (or wordpress) automatically downscale all rss feed images to a maximum size of 630px.

In other words, I would like a hands-off method of rescaling images that come through the rss feeds to fit within the post container.

Thanx

January 5, 2012
6:13 pm
Avatar
CyberSEO
Admin
Forum Posts: 3666
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline

There are many ways to do what you want. The simplest one is adding the following line into your blog's style.css:

Login to see the code

Could be easier?

January 5, 2012
8:19 pm
Avatar
Johnny Wadd
Guest
Guests

I'll give it a shot…

Can you share with your community the other methods?

January 5, 2012
8:54 pm
Avatar
CyberSEO
Admin
Forum Posts: 3666
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline

Johnny Wadd said:

Login to see the quote

For example, you can write your own script (insert it into “PHP code <?php .. ?>”) which will replace the “height” and “width” attributes of the “<img>” tag with your own values. The following example will work fine in case if the image’s “width” and “height” attributes are not defined:

Login to see the code

Also you can use the cseo_save_image() API function to re-scale the original image and store it at your own host. E.g.:

Login to see the code

If the “width” and “height” attributes are defined initially, they need to be removed first (use the preg_replace() PHP function), e.g:

Login to see the code

But once again, simple add the following line into your style.css and it will do the trick:

Login to see the code

January 5, 2012
9:11 pm
Avatar
Johnny Wadd
Guest
Guests

Wonderful!

Thanks for your expertise… I’ll report back on my finding.

Thanks for the quick responses!

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 541

Currently Online:
13 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: 4

Topics: 1529

Posts: 7735

Newest Members:

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

Administrators: CyberSEO: 3666