|
Page 1 of 2
|
Danielc 
Joined: August 2006
Posts: 248
Location:
|
 Problems Generating Some Thumbnails
Hello everybody...
I have problems generating some thumbnails of images that exists... For example, yesterday i coded one php to show the torunament ranking of an user.. But my site can't generate the thumbnail, and the image is perfectly...
For example:
If you click in the image, you can see it perfectly, but the thumbnail isn't generated well..
Could you help me please?
EDIT: Link corrected.
Last edited by Danielc on Fri 03 Dec, 2010 14:08; edited 1 time in total |
#1 Fri 09 Oct, 2009 17:01 |
|
Sponsors

|
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.
|
|
Mighty Gorgon 
Luca Libralato
Joined: August 2006
Posts: 7192
Location:  Borgo San Michele
|
 Re: Problems Generating Some Thumbnails
Image address contains special characters and for security reason Thumbnail is not generated...
____________ Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
|
#2 Sat 10 Oct, 2009 13:11 |
|
Danielc 
Joined: August 2006
Posts: 248
Location:
|
 Re: Problems Generating Some Thumbnails
So, isn't there a way that i can generate the thumbnail??
Thanks for the answer..
|
#3 Sat 10 Oct, 2009 15:36 |
|
Mighty Gorgon 
Luca Libralato
Joined: August 2006
Posts: 7192
Location:  Borgo San Michele
|
 Re: Problems Generating Some Thumbnails
Yes, there is... but you will lose your warranty against hackers... do you want to proceed?
____________ Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
|
#4 Sun 11 Oct, 2009 10:33 |
|
Danielc 
Joined: August 2006
Posts: 248
Location:
|
 Re: Problems Generating Some Thumbnails
I have done one thing.. Can you tell me if that thing is secure?
I created a new folder with my file (called ranking.php). In that folder, i have created a .htaccess file, copying some parts of the one in the root. Also, i have written a rule to redirect, for example, "http://www.rankings.miiconsola.com/santiago marine.jpg" to my file with the correct parameters.. In rankings.php, i generate manually the thumbnails and copy them to the correct folder..
Is this secure?? Do yo need to see the php file?
Thanks!!!
|
#5 Sun 11 Oct, 2009 16:05 |
|
Informpro 
Joined: October 2008
Posts: 1110
Location:
|
 Re: Problems Generating Some Thumbnails
Why not remove the space x) ?
|
#6 Sun 11 Oct, 2009 16:18 |
|
Danielc 
Joined: August 2006
Posts: 248
Location:
|
 Re: Problems Generating Some Thumbnails
¿/santiago marine.jpg? that string is the username.. And that username has spaces xD... With other username like mine, there are no spaces...
|
#7 Sun 11 Oct, 2009 16:43 |
|
Mighty Gorgon 
Luca Libralato
Joined: August 2006
Posts: 7192
Location:  Borgo San Michele
|
 Re: Problems Generating Some Thumbnails
When you have to use strings in URL you have to use the urlencode method.
Quotes should not be ever used.
If you urlencode your urls, thumbnails should work fine. Have a try.
____________ Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
|
#8 Mon 12 Oct, 2009 10:14 |
|
Danielc 
Joined: August 2006
Posts: 248
Location:
|
 Re: Problems Generating Some Thumbnails
Now, my manually generated thumbnails work fine.. Anyway should i "encode" the urls?
|
#9 Mon 12 Oct, 2009 16:13 |
|
Mighty Gorgon 
Luca Libralato
Joined: August 2006
Posts: 7192
Location:  Borgo San Michele
|
 Re: Problems Generating Some Thumbnails
Yes, because some stupid browsers (try to guess which is one of them!  ) sometimes doesn't recognize URL correctly if they are not encoded.
____________ Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
|
#10 Wed 21 Oct, 2009 20:07 |
|
Danielc 
Joined: August 2006
Posts: 248
Location:
|
 Re: Problems Generating Some Thumbnails
Ok, i will do that.. Thanks again, MG!
|
#11 Thu 22 Oct, 2009 01:06 |
|
Danielc 
Joined: August 2006
Posts: 248
Location:
|
 Re: Problems Generating Some Thumbnails
Sorry.. A little question.. Could you help me in where to add urlencode method??
|
#12 Sat 24 Oct, 2009 03:35 |
|
Mighty Gorgon 
Luca Libralato
Joined: August 2006
Posts: 7192
Location:  Borgo San Michele
|
 Re: Problems Generating Some Thumbnails
Do you have a script generating those urls or are you typing them manually?
____________ Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
|
#13 Mon 26 Oct, 2009 17:30 |
|
Danielc 
Joined: August 2006
Posts: 248
Location:
|
 Re: Problems Generating Some Thumbnails
I use .htaccess to "redirect" the link to the php with the needed args.. For example: http://www.rankings.miiconsola.com/Danielc.jpg is replaced with http://www.rankings.miiconsola.com/ranking.php?usuario=Danielc
To generate the thumbnails, i extracted some of the needed code to obtain the filename, and copy it manually to the thumbnails path..
Do you need the source code??
Thanks!
|
#14 Mon 26 Oct, 2009 23:11 |
|
Mighty Gorgon 
Luca Libralato
Joined: August 2006
Posts: 7192
Location:  Borgo San Michele
|
 Re: Problems Generating Some Thumbnails
I mean, where the image code is posted?
Is posted in a topic or automatically in the profile?
____________ Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
|
#15 Tue 27 Oct, 2009 00:11 |
|
|
Page 1 of 2
|
Was this topic useful?
Was this topic useful?
Link this topic |
URL |
|
BBCode |
|
HTML |
|
You cannot post new topics You cannot reply to topics You cannot edit your posts You cannot delete your posts You cannot vote in polls You cannot attach files You can download files You cannot post calendar events
|
|
|
|