Home » Forum
NoNumber!

Joomla!® Websites & Extensions
development  -  support  -  consultancy

I try to respond within 48 hours (excluding weekends).
If I haven't responded by then, feel free to post a reminder or bug me via email.

My last reply was: 16 Hours, 31 Minutes ago.

Welcome, Guest
Please Login or Register.    Lost Password?

resizing external images
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: resizing external images
#8761
resizing external images 1 Year, 9 Months ago  
Hi,

i making my site work for mobile devices (www.thesourcemag.net) and using a plug in to achieve this.

However, external images are not resizing and i'm now trying the ReRepacer to achieve this.

could any one suggest the code to achieve this? bear in mind that it's only the external images that are not resizing...

many thanks in advance

Joao
jpsarmento
Posts: 2
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#8763
Re: resizing external images 1 Year, 9 Months ago  
Can you give a before and after html to see what you mean?
Peter van Westen
Admin
Posts: 9165
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
#8768
Re:resizing external images 1 Year, 9 Months ago  
Hi

Thanks for your reply.

I came here following the suggestion below. The thing is that in my site, jpg's are resizing... it's only external images that are not. If you check www.thesourcemag.net from a mobile device, you'll see what i mean.

The plug in i'm using is Mobile Joomla (www.mobilejoomla.com/ ). Someone else made the suggestion below, in their forum.

Does this help?

Joao

------------------------------------------------



TEMP FIX for broken links to resized images

If anyone is having the same problem as me (resized image links are broken in the mobile version because resized images are JPG, not PNG) I have a band-aid solution for you.

1. Go download and install Rereplacer
www.nonumber.nl/extensions/rereplacer

2. Create a new item in Rereplacer

3. Put this in the Search field
Code:
(src="[^"]*/Resized/[^"]*\.)png
4. Put this is the Replace field
Code:
\1jpg
5. Check YES for Regular Expressions, check ONLY for Enable in tags, check YES for Limit to Tag selection and in the tag selection box, put this
Code:
img[*]
This will replace all links to /Resized/IMAGENAME.png with /Resized/IMAGENAME.jpg

This works for me because all my resized images are jpgs.
jpsarmento
Posts: 2
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#8775
Re:resizing external images 1 Year, 9 Months ago  
ok, great
Peter van Westen
Admin
Posts: 9165
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
Go to topPage: 1
Moderators: Peter van Westen
MaxCDN | Content Delivery Network | Accelerate your site to the max
Open Source Training | Online Joomla! Training and Support
hosting joomla