473,322 Members | 1,188 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

image slicing script

Hi All
i m making a web site having number of big images. My requirement is i
want to dunamically split the images while downloading so that my
website works fast and image downloading does not not much time.
I need a script in php for doing this.
Please help me .Your help will be highly appreciated.
Jun 2 '08 #1
6 4889
Hello,

on 05/05/2008 03:15 AM sarika said the following:
Hi All
i m making a web site having number of big images. My requirement is i
want to dunamically split the images while downloading so that my
website works fast and image downloading does not not much time.
I need a script in php for doing this.
Please help me .Your help will be highly appreciated.
You may want to take a look at these classes that can do exactly what
you want:

http://www.phpclasses.org/imageslicer

http://www.phpclasses.org/jpegslicer

--

Regards,
Manuel Lemos

PHP professionals looking for PHP jobs
http://www.phpclasses.org/professionals/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
Jun 2 '08 #2
You may want to take a look at these classes that can do exactly what
you want:

http://www.phpclasses.org/imageslicer

http://www.phpclasses.org/jpegslicer

--

Regards,
Manuel Lemos

PHP professionals looking for PHP jobshttp://www.phpclasses.org/professionals/

PHP Classes - Free ready to use OOP components written in PHPhttp://www.phpclasses.org/
I have already seen http://www.phpclasses.org/imageslicer but it does
not work
Jun 2 '08 #3
On May 5, 1:15 am, sarika <sarikason...@gmail.comwrote:
Hi All
i m making a web site having number of big images. My requirement is i
want to dunamically split the images while downloading so that my
website works fast and image downloading does not not much time.
I need a script in php for doing this.
Please help me .Your help will be highly appreciated.
You can do many things with images, such as splitting them, using the
GD PHP extension, which is installed on many versions of PHP since the
mid 4 versions. However, if you have not used GD before, you will have
much to learn, and I do not have "cookbook" code to copy - there are
so many ways one might want to do this. I just recently split an image
into 5 strips, but did not separate the strips, to make an image map
that will do different things when clicked in 5 different areas. This
was all done with GD.

Very few have to worry about loading time for images anymore if the
page is properly designed for the web. The solution starts with the
basic image and proper html design. Do not use large byte size images
on web pages. If you have a lot of images on a web page that are of
fairly large byte size, consider using only thumbnails on the main
page that bring up higher resolution images on other pages when
clicked. Reduce the image size as much as you can and still leave the
image good enough. This can be done using a good image tool - I use
PaintShop Pro, and there are many others. You can reduce the size of
the image used, the number of colors used, etc with such a tool. For
some image formats you can adjust the tool to make an image that
quickly appears as a whole in low resolution nearly at once, and the
resolution is increased as the image downloads. If you have enough
images to slow down loading of the page, it is very important to give
both the height and width of all images. If you do this, the text all
loads at first rapidly and space is reserved for each image. Then the
images are loaded while the viewer is reading the page. Keep in mind
that anything you do after the images are finally processed will not
make the total page download any faster. It just will make it possible
to start viewing part of the page, such as text, before the download
is complete.

The easy way to slice and dice images is with an image tool on your
computer, such as PaintShop Pro. See my page at http://www.cwdjr.net/test/picturePuzzle.html
for an image that has been sliced and diced into 36 pieces using Paint
shop. The tool automatically names each of the 36 pieces of image with
column and row numbers, and it will write much of the html for putting
the image pieces back together again, saving you a huge amount of
work. Then you can upload a directory of all 36 pieces to your server
with a key click or two using FTP.
Jun 2 '08 #4
On May 5, 2:22 am, cwdjrxyz <spamtr...@cwdjr.infowrote:
On May 5, 1:15 am, sarika <sarikason...@gmail.comwrote:
Hi All
i m making a web site having number of big images. My requirement is i
want to dunamically split the images while downloading so that my
website works fast and image downloading does not not much time.
I need a script in php for doing this.
Please help me .Your help will be highly appreciated.

You can do many things with images, such as splitting them, using the
GD PHP extension, which is installed on many versions of PHP since the
mid 4 versions. However, if you have not used GD before, you will have
much to learn, and I do not have "cookbook" code to copy - there are
so many ways one might want to do this. I just recently split an image
into 5 strips, but did not separate the strips, to make an image map
that will do different things when clicked in 5 different areas. This
was all done with GD.

Very few have to worry about loading time for images anymore if the
page is properly designed for the web. The solution starts with the
basic image and proper html design. Do not use large byte size images
on web pages. If you have a lot of images on a web page that are of
fairly large byte size, consider using only thumbnails on the main
page that bring up higher resolution images on other pages when
clicked. Reduce the image size as much as you can and still leave the
image good enough. This can be done using a good image tool - I use
PaintShop Pro, and there are many others. You can reduce the size of
the image used, the number of colors used, etc with such a tool. For
some image formats you can adjust the tool to make an image that
quickly appears as a whole in low resolution nearly at once, and the
resolution is increased as the image downloads. If you have enough
images to slow down loading of the page, it is very important to give
both the height and width of all images. If you do this, the text all
loads at first rapidly and space is reserved for each image. Then the
images are loaded while the viewer is reading the page. Keep in mind
that anything you do after the images are finally processed will not
make the total page download any faster. It just will make it possible
to start viewing part of the page, such as text, before the download
is complete.

The easy way to slice and dice images is with an image tool on your
computer, such as PaintShop Pro. See my page at http://www.cwdjr.net/test/picturePuzzle.html
for an image that has been sliced and diced into 36 pieces using Paint
shop. The tool automatically names each of the 36 pieces of image with
column and row numbers, and it will write much of the html for putting
the image pieces back together again, saving you a huge amount of
work. Then you can upload a directory of all 36 pieces to your server
with a key click or two using FTP.
The example is at http://www.cwdjr.net/test/picturePuzzle.php . I gave
an address for an old page no longer up.

Jun 2 '08 #5
On May 5, 12:22*pm, cwdjrxyz <spamtr...@cwdjr.infowrote:
On May 5, 1:15 am, sarika <sarikason...@gmail.comwrote:
Hi All
i m making a web site having number of big images. My requirement is i
want to dunamically split the images while downloading so that my
website works fast and image downloading does not not much time.
I need a script in php for doing this.
Please help me .Your help will be highly appreciated.

You can do many things with images, such as splitting them, using the
GD PHP extension, which is installed on many versions of PHP since the
mid 4 versions. However, if you have not used GD before, you will have
much to learn, and I do not have "cookbook" code to copy - there are
so many ways one might want to do this. I just recently split an image
into 5 strips, but did not separate the strips, to make an image map
that will do different things when clicked in 5 different areas. This
was all done with GD.

Very few have to worry about loading time for images anymore if the
page is properly designed for the web. The solution starts with the
basic image and proper html design. Do not use large byte size images
on web pages. If you have a lot of images on a web page that are of
fairly large byte size, consider using only thumbnails on the main
page that bring up higher resolution images on other pages when
clicked. Reduce the image size as much as you can and still leave the
image good enough. This can be done using a good image tool - I use
PaintShop Pro, and there are many others. You can reduce the size of
the image used, the number of colors used, etc with such a tool. For
some image formats you can adjust the tool to make an image that
quickly appears as a whole in low resolution nearly at once, and the
resolution is increased as the image downloads. If you have enough
images to slow down loading of the page, it is very important to give
both the height and width of all images. If you do this, the text all
loads at first rapidly and space is reserved for each image. Then the
images are loaded while the viewer is reading the page. Keep in mind
that anything you do after the images are finally processed will not
make the total page download any faster. It just will make it possible
to start viewing part of the page, such as text, before the download
is complete.

The easy way to slice and dice images is with an image tool on your
computer, such as PaintShop Pro. See my page athttp://www.cwdjr.net/test/picturePuzzle.html
for an image that has been sliced and diced into 36 pieces using Paint
shop. The tool automatically names each of the 36 pieces of image with
column and row numbers, and it will write much of the html for putting
the image pieces back together again, saving you a huge amount of
work. Then you can upload a directory of all 36 pieces to your server
with a key click or two using FTP.
Thanks alot for giving such a valuable infomation
Jun 2 '08 #6
On May 5, 12:22*pm, cwdjrxyz <spamtr...@cwdjr.infowrote:
On May 5, 1:15 am, sarika <sarikason...@gmail.comwrote:
Hi All
i m making a web site having number of big images. My requirement is i
want to dunamically split the images while downloading so that my
website works fast and image downloading does not not much time.
I need a script in php for doing this.
Please help me .Your help will be highly appreciated.

You can do many things with images, such as splitting them, using the
GD PHP extension, which is installed on many versions of PHP since the
mid 4 versions. However, if you have not used GD before, you will have
much to learn, and I do not have "cookbook" code to copy - there are
so many ways one might want to do this. I just recently split an image
into 5 strips, but did not separate the strips, to make an image map
that will do different things when clicked in 5 different areas. This
was all done with GD.

Very few have to worry about loading time for images anymore if the
page is properly designed for the web. The solution starts with the
basic image and proper html design. Do not use large byte size images
on web pages. If you have a lot of images on a web page that are of
fairly large byte size, consider using only thumbnails on the main
page that bring up higher resolution images on other pages when
clicked. Reduce the image size as much as you can and still leave the
image good enough. This can be done using a good image tool - I use
PaintShop Pro, and there are many others. You can reduce the size of
the image used, the number of colors used, etc with such a tool. For
some image formats you can adjust the tool to make an image that
quickly appears as a whole in low resolution nearly at once, and the
resolution is increased as the image downloads. If you have enough
images to slow down loading of the page, it is very important to give
both the height and width of all images. If you do this, the text all
loads at first rapidly and space is reserved for each image. Then the
images are loaded while the viewer is reading the page. Keep in mind
that anything you do after the images are finally processed will not
make the total page download any faster. It just will make it possible
to start viewing part of the page, such as text, before the download
is complete.

The easy way to slice and dice images is with an image tool on your
computer, such as PaintShop Pro. See my page athttp://www.cwdjr.net/test/picturePuzzle.html
for an image that has been sliced and diced into 36 pieces using Paint
shop. The tool automatically names each of the 36 pieces of image with
column and row numbers, and it will write much of the html for putting
the image pieces back together again, saving you a huge amount of
work. Then you can upload a directory of all 36 pieces to your server
with a key click or two using FTP.
Thanks alot for giving such a valuable infomation
Jun 2 '08 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Tony Benham | last post by:
I have a main div on a page that contains some text plus an img which is floated right, causing the image to be placed on the right of the div with the text on the left. However the height of the...
3
by: D. Alvarado | last post by:
Hello, I have a background repeating image <table style="background-image: url('../images/KJV-BAND_SLICED_03.gif');" ... Is there any way I can specify the size of this image? OBviously, the...
3
by: Bryan Olson | last post by:
I recently wrote a module supporting value-shared slicing. I don't know if this functionality already existed somewhere, but I think it's useful enough that other Pythoners might want it, so here...
11
by: jbperez808 | last post by:
>>> rs='AUGCUAGACGUGGAGUAG' >>> rs='GAG' Traceback (most recent call last): File "<pyshell#119>", line 1, in ? rs='GAG' TypeError: object doesn't support slice assignment You can't assign to...
4
by: Microsoft | last post by:
I used photoshop to slice up some images. PS, creates the tables and differant images. You are supposed to simple upload the photos and copy and past the table codes taht was generated from the...
17
by: baibaichen | last post by:
i have written some code to verify how to disable slicing copy according C++ Gotchas item 30 the follow is my class hierarchy, and note that B is abstract class!! class B { public: explicit...
2
by: Michiel Sikma | last post by:
Hello everybody. I'm currently involved in a site building project in which we're going to use the Google Maps API. The user will be able to browse the site by looking over a really large image,...
18
by: Nik Coughlin | last post by:
I am halfway through writing a tutorial on image slicing for fluid CSS layouts, I would love some feedback on what I've done up until this point: http://nrkn.com/index.html I am still writing...
3
by: luigidavinci | last post by:
Hi there, I just found these forums and several questions I had have been answered by just reading the posts but this one. I have simplified my code in order to just get to the point with my...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.