24 Topics

Member Avatar for
Member Avatar for Reverend Jim

As part of a project to manage my collection of photos, I wanted to add the capability of displaying a series of files as thumbnails. This posed me with three problems: 1. how to preserve the aspect ratio of the original images 1. how to generate the thumbnails without tying …

Member Avatar for mariopepper
3
3K
Member Avatar for shany0786

I am uploading max 5 images and i want to create the thumbnails of those 5 images i am successful in uploading and saving image name in database but can't able to make thumbnails. //controller $files = $_FILES; $cpt = count($_FILES['uploadfile']['name']); for($i=0; $i<$cpt; $i++) { $_FILES['uploadfile']['name']= $files['uploadfile']['name'][$i]; $_FILES['uploadfile']['type']= $files['uploadfile']['type'][$i]; $_FILES['uploadfile']['tmp_name']= …

Member Avatar for shany0786
0
335
Member Avatar for rhodoscoder

//index.php $img_dir ="C:/xampp/folders/img/*.jpg"; $thumb_width = 100; // Open a known directory, and proceed to read its contents $scan= glob($img_dir); foreach($scan as $image) { $im= imagecreatefromjpeg($image); $img_width = imagesx($im); $img_height=imagesy($im); $thumb_height= floor ($img_height *($thumb_width/$img_width)); $new_img=imagecreatetruecolor($thumb_width,$thumb_height); imagecopyresized($new_img, $im, 0,0, 0, 0, $thumb_width, $thumb_height, $img_width, $img_height); $thumb_path = "C:/xampp/folders/thumbs/"; imagejpeg($new_img,$thumb_path); } The error …

Member Avatar for minitauros
0
237
Member Avatar for Reverend Jim

I've rewritten this question a half dozen times and each time it makes less sense. In a nutshell, I want to populate a listview with large icons representing image files but I can't get them to come out unstretched. They are always stretched along the x or y axis because …

Member Avatar for Reverend Jim
0
286
Member Avatar for serph09

So I have this code here: http://jsfiddle.net/4Cqkh/1/ What I'm trying to do is when I click on a thumbnail, the below larger image of it should display according to which thumbnail is clicked. I tried switching the larger image's src to that of the thumbnail src's value when clicked but …

Member Avatar for serph09
0
246
Member Avatar for phpHelp

Hey guyz, I am here again with a PHP issue... I need to upload an image and create a thumbnail for the same. Yeah it's so simple. But the difficult part is that the user will create the thumbnail (not crop) by his own choice. Please help.

Member Avatar for pritaeas
0
138
Member Avatar for kingofnothing

hi i need to show the last post thumbnail only i had the code but im now looking for code to get image i need to place the image on the top <ul> <?php $recent = new WP_Query("cat=1&showposts=10"); while($recent->have_posts()) : $recent->the_post();?> <li><a href="<?php the_permalink() ?>" rel="bookmark"> <?php the_title(); ?> </a></li> …

Member Avatar for kingofnothing
0
142
Member Avatar for dyahalifda

Hi, it's me again. I got a little problem with displaying thumbnail images. I have a repeater which is containing thumbnail images. Each image will zoom-in to a defined bigger size if we click on the thumbnail. [CODE] <div class="thumb"> <a href="images/<%=request.querystring("div") %>/<%=request.querystring("veh") %>COST<%=reportdate.Value.ToString.Replace("/","")%><%# Eval("page") %><%# Eval("image_link") %>" onclick="return hs.htmlExpand(this, …

Member Avatar for dyahalifda
0
503
Member Avatar for shandoosheri

Hi guys I need a little help in viewing all .txt files in a folder in a thumbnail view and allowing the user to open it in the default txt editor Any help would be appreciated Thank you

Member Avatar for hericles
0
191
Member Avatar for turt2live

What this script does is take in an image and export a thumbnailed version. Function Arguments: $file : Desired image to create a thumbnail of $destination : End location for the thumbnail $zoom : Setting type, explained later (default: false) $t_width : Thumbnail width (default: 150) $t_height : Thumbnail height …

Member Avatar for turt2live
0
536
Member Avatar for veledrom

Hi, I want to capture snapshot of a URL. User enters URL, hits Capture button and sees the captured image of that website. I have done some google-ing but not real solution it. Does anyone know any example in PHP and only on Linux? Not interested 3rd party websites though. …

Member Avatar for diafol
0
246
Member Avatar for Aksel

Hi :) Is there any way, using PHP, to display a mini-version of an external website ? What I'm trying to achieve is when my users enter a link, then it should automatically try to display the link's contents - but within a given height / width. Appriciate any feedback …

Member Avatar for pritaeas
0
347
Member Avatar for TS77

I need to be able to display a screenshot grab of specific websites in thumbnail size. Instead of going to the site and screenshotting it, I would like PHP to do the job for me. Is this possible?

Member Avatar for TS77
0
453
Member Avatar for Wraithmanilian

This code is for a stand-alone file, named "thumbnail.php" or something similar. Once uploaded to your server, it can be called from inside an IMG tag. There are four options for this script without modifying anything. [LIST=1] [*]First, you can resize the image to a percentage of the original, as …

Member Avatar for Web Dev Rob
0
359
Member Avatar for jrivera

I've looked at all of the lightboxes and I'm not sure if I'm not looking hard enough or if I'm looking in the wrong place. I'm looking for a plugin that I can use that will allow me to do the following. Have 1 row of images (about 5 images …

Member Avatar for jrivera
0
180
Member Avatar for JPByD

I have a C# website that includes AJAX. The site has a master page and sub pages. I am revamping the photo gallery sub page to include a jquery function that displays a larger version of a thumbnail image when hovered. The thumbnails are listed in a xaml file, at …

Member Avatar for JPByD
0
215
Member Avatar for dschuett

Hi everyone, I have been working on an image gallery to allow people to view/upload their photos. I have everything working pretty well except that I want to modify my upload script so that a thumbnail is generated of each picture that is uploaded and stored in a separate directory …

Member Avatar for dschuett
0
180
Member Avatar for dschuett

The following script works GREAT. It uploads an image as well as adds info to mysql about the picture and its location. The problem is that the function "CreateThumbs" actually loops through the entire uploads directory and generates a thumbnail EVERY TIME you upload a picture. I am VERY new …

Member Avatar for dschuett
0
154
Member Avatar for ajay531

hi i am using windows application. in that form i place picturebox, openfiledialogue, loadimage, saveimage buttons. using loadimage button to load image into picture box. using saveimage button to save image into one folder(save image into harddisk) at the time of save image first we crop the image like height:100 …

Member Avatar for codeorder
0
170
Member Avatar for MrAlshahawy

Hi all, How can we load contact thumbnail ?? I want to fetch it and preview it on canvas . thanks in advance.

0
94
Member Avatar for bjeffries

Which is the smarter way to do things.. Should I create a thumbnail script that resizes and crops the images so they are uniform when I create and upload a gallery? Or Should I run a script when the page loads that resizes and crops the images so they are …

Member Avatar for pritaeas
0
159
Member Avatar for ApocDen

1. Imports System.IO 2. Create class "CreateThumbnails" or any class and place following function inside that class You need one function to response call back to main function Function ImageAbortDummyCallback() As Boolean Return False End Function

0
495
Member Avatar for metalix

Hi there. I am looking to create a script in php that will get an image from an upload form and upload it to a site using ftp. It needs to save the original image in the site images/full/ and also create a proportional image thumbnail (100x100) in images/thumb/ What …

Member Avatar for edup_pt
0
207
Member Avatar for praveen_dusari

hi all, i am trying to create a thubnail image and want to insert in a folder and path into database.. i uploaded image into folder but not able to create thumbnail from it [CODE]string s = @"~\uploads\" + FileUpload1.FileName; FileUpload1.PostedFile.SaveAs(Server.MapPath(s)); SqlConnection cn = new SqlConnection("Server=praveen;Integrated Security=True;User Id=sa;Password=sa;Initial Catalog=banking"); string …

Member Avatar for carrzkiss
0
421

The End.