• [MOD] Multi Size Download of same image [ver 4.7] 5 0 5 1
Currently:  

Author Topic: [MOD] Multi Size Download of same image [ver 4.7]  (Read 433518 times)

0 Members and 2 Guests are viewing this topic.

Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: [MOD] Multi Size Download of same image [ver 2.1]
« Reply #60 on: June 27, 2009, 12:32:36 AM »
@DjeckMcNil,
Can you give me a link so I can see it in action?

I have not heard of any complaint like that and have looked it over pretty good. 1600X1200 works for me...

Buddy Duke
www.budduke.com

Offline DjeckMcNil

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
Re: [MOD] Multi Size Download of same image [ver 2.1]
« Reply #61 on: June 27, 2009, 10:02:16 AM »
@DjeckMcNil,
Can you give me a link so I can see it in action?

I have not heard of any complaint like that and have looked it over pretty good. 1600X1200 works for me...



Hello. Posted by site in the Personal Message. Thanks

Offline lona_jasty

  • Newbie
  • *
  • Posts: 44
    • View Profile
Re: [MOD] Multi Size Download of same image [ver 2.1]
« Reply #62 on: June 30, 2009, 05:07:42 AM »
Hi

I am back & want my gallery update.

I have successfully installed it, but I don't know, what the problem is?

When I tried to select image resolution & then download, image downloaded, but its size is just around 259-261 bytes, yeah bytes.

Please can you tell me what I am doing wrong?

Here is my sample gallery
http://www.desktophut.com

Edit: I think, its the problem of "big" folder, I have created in "Media" & in Category say "3" folder too, but nothing change.

Regards

Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: [MOD] Multi Size Download of same image [ver 2.1]
« Reply #63 on: June 30, 2009, 12:11:42 PM »
@lona_jasty,

The Mod should create the big folder on the fly if it is needed.
When you select the size and click download, does a big folder get created in that category folder?

can you PM me any temporary ftp access to look at the files?

Update: That users problem was fixed. one of the inserts in download.php was in the wrong location...
« Last Edit: July 01, 2009, 02:20:00 AM by budduke »
Buddy Duke
www.budduke.com

Offline GaYan

  • Sr. Member
  • ****
  • Posts: 301
  • ♫ | G2 | ♫
    • View Profile
    • Ziramagic
Re: [MOD] Multi Size Download of same image [ver 2.1]
« Reply #64 on: June 30, 2009, 03:44:07 PM »
hey.. i need a modification ... all i need is to .. to show the buttons of images sizes instead of the drop down list...

or can i show them both ??

Please Help Me In this case // thanks in advance..

Regards . GaYan !
I'm Back :)

Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: [MOD] Multi Size Download of same image [ver 2.1]
« Reply #65 on: June 30, 2009, 03:48:33 PM »
hey.. i need a modification ... all i need is to .. to show the buttons of images sizes instead of the drop down list...

or can i show them both ??

Please Help Me In this case // thanks in advance..

Regards . GaYan !
Version 2.1 should handle that for you...
look at the inserts that I made in the Global file at the end. You will see the variables in the MOD that you can change to fit your needs.
Quote
$multi_download_var['type'] = 0; //0=dropdown, 1=text links, 2=image links

Let me know if you need something further then that...
Buddy Duke
www.budduke.com

Offline varoon

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: [MOD] Multi Size Download of same image [ver 2.1]
« Reply #66 on: June 30, 2009, 04:49:09 PM »
Hi

Thx for the Grt MOD

i installed and its working fine on my latest build.

one problem here.. i am using very small size width and height.

Eg: 240 x 320

if i download a large image. it does not convert to the mentioned size. Either With or Height is in different size !!!

i just want it to scale to the mentioned size.

how do i do ?

and i dont see any option to Enable / disable is multi download in Admin panel.

Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: [MOD] Multi Size Download of same image [ver 2.1]
« Reply #67 on: June 30, 2009, 08:45:10 PM »
Hi

Thx for the Grt MOD

i installed and its working fine on my latest build.

one problem here.. i am using very small size width and height.

Eg: 240 x 320

if i download a large image. it does not convert to the mentioned size. Either With or Height is in different size !!!

i just want it to scale to the mentioned size.

how do i do ?

and i dont see any option to Enable / disable is multi download in Admin panel.


I am assuming you are wanting your users to be able to select 240X320 as an option in the download list?

This can be handled in the Global.php file...
Quote
$download_multi_sizes= array(
   array('640X480',640,480),
   array('800X600',800,600),
   array('1024X768',1024,768),
   array('1280X960',1280,960),
   array('1400X1050',1400,1050),
   array('1600X1200',1600,1200),
   array('1280X800-wide',1280,800),
   array('1440X900-wide',1440,900),
   array('1680X1050-wide',1680,1050),
   array('1920X1200-wide',1920,1200)
   );

you can change it to look something like this?
Code: [Select]
$download_multi_sizes= array(
array('240X320',240,320),
array('640X480',640,480),
array('800X600',800,600),
array('1024X768',1024,768),
array('1280X960',1280,960),
array('1400X1050',1400,1050),
array('1600X1200',1600,1200),
array('1280X800-wide',1280,800),
array('1440X900-wide',1440,900),
array('1680X1050-wide',1680,1050),
array('1920X1200-wide',1920,1200)
);

you can also add other sizes or delete ones you know you do not use...

If I misunderstood your question please let me know...
Buddy Duke
www.budduke.com

Offline varoon

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: [MOD] Multi Size Download of same image [ver 2.1]
« Reply #68 on: July 01, 2009, 09:59:25 AM »
Quote
you can change it to look something like this?
Code: [Select]
$download_multi_sizes= array(
array('240X320',240,320),
array('640X480',640,480),
array('800X600',800,600),
array('1024X768',1024,768),
array('1280X960',1280,960),
array('1400X1050',1400,1050),
array('1600X1200',1600,1200),
array('1280X800-wide',1280,800),
array('1440X900-wide',1440,900),
array('1680X1050-wide',1680,1050),
array('1920X1200-wide',1920,1200)
);

you can also add other sizes or delete ones you know you do not use...

If I misunderstood your question please let me know...

Thx for the reply

Ya i found that code and Completely changed everything to new size.

But my question was, when i download an image of 240 x 320 form a large image, i got an uneven size like (203 x 320) OR (240 x 312) Depending on the original image size.

the conversion size was not 240 x 320.  :?


Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: [MOD] Multi Size Download of same image [ver 2.1]
« Reply #69 on: July 01, 2009, 12:18:10 PM »
Thx for the reply

Ya i found that code and Completely changed everything to new size.

But my question was, when i download an image of 240 x 320 form a large image, i got an uneven size like (203 x 320) OR (240 x 312) Depending on the original image size.

the conversion size was not 240 x 320.  :?



That question gets PM'd to me all the time so I thought I would answer it here for everyone...
The mod only resizes proportionally, it does not stretch or distort the image to get to the edges of the sizes that do not fit perfectly.
I never knew there was soo much interest in this addition. I am currently working on version 3.0 of this MOD. It will give a cropping feature that will resize the image larger then the size that is asked for and then crop off one of the sides to give you the exact size you are requesting but you will loose part of the image in the process. I may also put in a variable that will stretch the image to fit requested size, but I do not like that option personally because it makes people in the image look fat.

Stay tuned and glad it is working for you...
Buddy Duke
www.budduke.com

Offline varoon

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: [MOD] Multi Size Download of same image [ver 2.1]
« Reply #70 on: July 01, 2009, 12:32:59 PM »

That question gets PM'd to me all the time so I thought I would answer it here for everyone...
The mod only resizes proportionally, it does not stretch or distort the image to get to the edges of the sizes that do not fit perfectly.
I never knew there was soo much interest in this addition. I am currently working on version 3.0 of this MOD. It will give a cropping feature that will resize the image larger then the size that is asked for and then crop off one of the sides to give you the exact size you are requesting but you will loose part of the image in the process. I may also put in a variable that will stretch the image to fit requested size, but I do not like that option personally because it makes people in the image look fat.

Stay tuned and glad it is working for you...


Thx duke...

Streach and cutting Edges are good options... i would really like if both were there and user could choose it... :)

personally i too don't like those option.. but when user request  for a particular image size.. i cant convert all image and create a separate category.. hope u understand... this option is only for people who are lazy to convert images... :)

waiting for the update...  :wink:

thx in advance...

Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: [MOD] Multi Size Download of same image [ver 2.1]
« Reply #71 on: July 02, 2009, 07:58:00 PM »

Streach and cutting Edges are good options... i would really like if both were there and user could choose it... :)


User can choose it? Did not even think about that 8O
The version that I will be releasing will only be a global selection for the entire site. In order to allow the user to select, I will have to completely redo the code but may give it a try down the road.

The only issue I see is that allong with the original file you would then have a
resized_1024X768 file
resized_stretched_1024X768 file
resized_copped_1024X768 file
for each of the sizes that the user could choose, may get confusing on a large site but doable. at least the extra files would be in a big subfolder, easy to delete if running out of space.

If enough people think this would be a good addition I may work on it harder...
Buddy Duke
www.budduke.com

Offline lona_jasty

  • Newbie
  • *
  • Posts: 44
    • View Profile
Re: [MOD] Multi Size Download of same image [ver 2.1]
« Reply #72 on: July 04, 2009, 01:14:44 AM »
Hi budduke

when you are releasing v3 ?

Please fix this cropping issue in its v3.

Hope you will release v3 very shortly.

:D Regards

Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: [MOD] Multi Size Download of same image [ver 2.1]
« Reply #73 on: July 04, 2009, 06:21:40 PM »
Hi budduke

when you are releasing v3 ?

Please fix this cropping issue in its v3.

Hope you will release v3 very shortly.

:D Regards

It is being tested on a friends site right now, he has found a few little programming bugs that I think are now fixed,
just waiting to here if everything is working without any issues before I post the changes...

[Updated]
Just updated my post with version 3.0
I looked into give the users the option to choose what they want.
I can possibly do this for the dropdown list because it is already a form
but the text_link and image_link options will not have this ability because they are not in the Form input
so I have decided not to go down that road of letting the users be able to select cropping feature unless enough people request it.
« Last Edit: July 04, 2009, 08:29:50 PM by budduke »
Buddy Duke
www.budduke.com

Offline varoon

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: [MOD] Multi Size Download of same image [ver 2.1]
« Reply #74 on: July 06, 2009, 08:15:32 AM »

Streach and cutting Edges are good options... i would really like if both were there and user could choose it... :)


User can choose it? Did not even think about that 8O
The version that I will be releasing will only be a global selection for the entire site. In order to allow the user to select, I will have to completely redo the code but may give it a try down the road.

The only issue I see is that allong with the original file you would then have a
resized_1024X768 file
resized_stretched_1024X768 file
resized_copped_1024X768 file
for each of the sizes that the user could choose, may get confusing on a large site but doable. at least the extra files would be in a big subfolder, easy to delete if running out of space.

If enough people think this would be a good addition I may work on it harder...


just returned from small vacation...

Ya i understand when it comes on Large websites...

when a user chooses ( crop / Stretch ) a new file is created...

these are created on the Fly right ? so after few hours u can automatically delete them.. coz its not gonna use for other users... (let me know if im wrong)