Hi Rob, thanks for information. As you told me i use 2 files to do what i need. 1 for displaying th thumbnail and the other just to display the picture. That's works great. However, how can i resize the picture (in my thumbnail) if my pictures are stored to DB ? i mean that my picture is stored in DB as bytea (so in base 8) and therefore the imagecopyresampled or imagecopyresize functions do not work. I also do not want to create a temporally file on the filesystem just to hold the resized picture. So is there another possibility how to resize picture ? thanks a lot, Al.