By sabbat on
I am looking for a good solution for include images in nodes (all my user can send nodes) how can use
tag but limit this to a size (for example no more than 300x300)
It´s posible?. there are any other good solution,?
I am looking for a good solution for include images in nodes (all my user can send nodes) how can use
tag but limit this to a size (for example no more than 300x300)
It´s posible?. there are any other good solution,?
Comments
If you want to restrict image size
Write code to use GD2 and pull out the width and height of the image in question. Then, you can rescale it if too big.
Where to modify this code is in the upload module. Look around this area:
Refer to the PHP Image functions. In particular getimagesize() which takes a file of most image extensions and returns back the width and height.
You could also add additional code to rescale it, but I'll leave that to you as an excercise. Let me know how it goes.
Note: the above wasn't tested, just a quick hack.
Kerry Kobashi
Kobashi Computing
Thank you, I will test it.
Thank you, I will test it. =)
-------------------------
si te aburres ya sabes
www.aburridos.info
Image
Take a look at the modules image and img assist.
Image allows uploading images as nodes, and features automatic resizing, whereas img_assist makes the entire workflow and addition of images to other nodes (stories) much easier.
--
Tips for posting to the forums.
When your problem is solved, please post a follow-up to the thread you started.
I test it but the tag is
I test it but the
tag is better for me becouse it don´t charge me host. the only problem is that another people can put very large imagen with it.
---------------------
si te aburres ya sabes
www.aburridos.info
I don't get it
Sorry I don't get it. Let's make this clear: do you want to include pictures from other sites (or servers) in your nodes?
--
Tips for posting to the forums.
When your problem is solved, please post a follow-up to the thread you started.
Yes it´s (imageshack.us,
Yes it´s (imageshack.us, etc)
------------
si te aburres ya sabes
www.aburridos.info