Hi, I have imagegen 2.5.7 pro installed and, sometimes, when I refresh, it seems that only the base image load, but not the transformation. If I look in the source code it's the correct image :
It's the top banner. It picks a random teacher node and shows his/her pictures with his/her description. The picture always works, but the description misses sometimes. You'll have to refresh rapidly to see the behavior.
Thanks, that's helpful. I'll do some research and see what I come up with.
While I'm doing that, can you tell me where the underlying image is located that the text is drawn onto? Is it on a network or SAN drive or is it local to the webserver and website? Also, is this a single-server setup or do you have loadbalancing or shared drives involved? Anything else you can tell me about your set up?
Hi, I'm afraid I can't tell a lot about the server because I don't have access to. But as far as I now, it's a virtual server on a single machine and we're alone on it. For the image, it's on the same hard drive than the website and on the same computer.
I just add the ~/AP folder in the reserved path in the web.config file and put the image in a subdirectory.
I hope this'll help! If you need anything else let me know.
The problem is caused when the &text= parameter has text that is too large for the underlying image and it therefore won't all fit. The image you're overlaying text on is 250x56 in size.
Most of the descriptions when rendered in your chosen font fit within that size. But some don't and those are 'empty' because the text won't fit and isn't rendered when it won't fit.
I'd say there's also a bug that in that situation the rotation doesn't happen either and I'll log it.
How big an image is required for the text? That's easy... just remove the ?image= and &rotate= parameters so only the text is rendered. For instance, this description creates an image that is 271x49, which is bigger than the 250x56 image you are 'drawing' the text on top of and it won't fit:
Only base image load
Hi, I have imagegen 2.5.7 pro installed and, sometimes, when I refresh, it seems that only the base image load, but not the transformation. If I look in the source code it's the correct image :
/ImageGen.ashx?image=/AP/albums-photos/texte.png&&align=left&valign=center&rotate=-8&font=/AP/albums-photos/BROKEN15.TTF&fontsize=16&text=S%E9bastien,%20prof%20de%20Math%E9matique,Scie....\r\n%20Avec%20All%F4%20prof%20depuis%202011.
But I only see (in this exemple) /AP/albums-photos/texte.png whitout rotation nor text.
How can I correct that?
Hi,
Thanks for the note. Is there a url where I can see this behaviour myself? That would help isolate the problem.
cheers,
doug.
Hi, I opened my dev site for two days http://alloprof.test.telequebec.tv/
It's the top banner. It picks a random teacher node and shows his/her pictures with his/her description. The picture always works, but the description misses sometimes. You'll have to refresh rapidly to see the behavior.
Thank you for your help!
Thanks, that's helpful. I'll do some research and see what I come up with.
While I'm doing that, can you tell me where the underlying image is located that the text is drawn onto? Is it on a network or SAN drive or is it local to the webserver and website? Also, is this a single-server setup or do you have loadbalancing or shared drives involved? Anything else you can tell me about your set up?
cheers,
doug.
Hi, I'm afraid I can't tell a lot about the server because I don't have access to. But as far as I now, it's a virtual server on a single machine and we're alone on it. For the image, it's on the same hard drive than the website and on the same computer.
I just add the ~/AP folder in the reserved path in the web.config file and put the image in a subdirectory.
I hope this'll help! If you need anything else let me know.
Hi,
The problem is caused when the &text= parameter has text that is too large for the underlying image and it therefore won't all fit. The image you're overlaying text on is 250x56 in size.
Most of the descriptions when rendered in your chosen font fit within that size. But some don't and those are 'empty' because the text won't fit and isn't rendered when it won't fit.
I'd say there's also a bug that in that situation the rotation doesn't happen either and I'll log it.
How big an image is required for the text? That's easy... just remove the ?image= and &rotate= parameters so only the text is rendered. For instance, this description creates an image that is 271x49, which is bigger than the 250x56 image you are 'drawing' the text on top of and it won't fit:
Your options include the following:
cheers,
doug.
Ok thank you! I used the first option and now it works great! And now I know how to render only text.
Simon
is working on a reply...