Problems Generating Some Thumbnails


Goto page 1, 2  Next

Subject: 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: danielc

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
Subject: Re: Problems Generating Some Thumbnails
Image address contains special characters and for security reason Thumbnail is not generated...

Subject: Re: Problems Generating Some Thumbnails
So, isn't there a way that i can generate the thumbnail??
Thanks for the answer..

Subject: Re: Problems Generating Some Thumbnails
Yes, there is... but you will lose your warranty against hackers... do you want to proceed? :P

Subject: 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!!!

Subject: Re: Problems Generating Some Thumbnails
Why not remove the space x) ?

Profile PM  
Subject: 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...

Subject: Re: Problems Generating Some Thumbnails
When you have to use strings in URL you have to use the urlencode method.

Code: [Download] [Hide] [Select]
urlencode($myurl)


Quotes should not be ever used.

If you urlencode your urls, thumbnails should work fine. Have a try.

Subject: Re: Problems Generating Some Thumbnails
Now, my manually generated thumbnails work fine.. Anyway should i "encode" the urls?

Subject: Re: Problems Generating Some Thumbnails
Yes, because some stupid browsers (try to guess which is one of them! :LOL: ) sometimes doesn't recognize URL correctly if they are not encoded.

Subject: Re: Problems Generating Some Thumbnails
Ok, i will do that.. Thanks again, MG!

Subject: Re: Problems Generating Some Thumbnails
Sorry.. A little question.. Could you help me in where to add urlencode method??

Subject: Re: Problems Generating Some Thumbnails
Do you have a script generating those urls or are you typing them manually?

Subject: 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!

Subject: Re: Problems Generating Some Thumbnails
I mean, where the image code is posted?

Is posted in a topic or automatically in the profile?

Goto page 1, 2  Next

Page 1 of 2


  
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

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.6141s (PHP: 3% SQL: 97%)
SQL queries: 12 - Debug Off - GZIP Enabled