Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43260
Total Topics: 7518
Most Online Today: 297
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 277
Total: 277

Author Topic: Regenerate Thumbs  (Read 5129 times)

0 Members and 1 Guest are viewing this topic.

Offline mashby

  • Jr. Member
  • **
  • Posts: 81
    • View Profile
    • ChopPix.com
Regenerate Thumbs
« on: April 15, 2008, 06:19:25 pm »
SMF Version 1.1.4
Gallery Pro Version

We had our thumbs initially set to 500 wide/high (1 image per page). We realized that 250 wide/400 high max would be better with 12 images per page. We made the settings and regenerated the thumbs. Here's what happened:
Original thumbfilename:
thumb_12_13_04_08_2_48_26.jpg
Regenerated thumbfilename:
12_13_04_08_2_48_26.jpg_thumb

I tried looking at the Gallery.template.php file, but cannot figure out where regen2 is. It's at least a very consistent issue, all images are affected...any ideas?
Thanks,
mashby

Offline mashby

  • Jr. Member
  • **
  • Posts: 81
    • View Profile
    • ChopPix.com
Re: Regenerate Thumbs
« Reply #1 on: April 15, 2008, 06:33:34 pm »
OK...after looking around a bit, I found this tidbit of code.
Code: [Select]
if ($parse_exist)
{
createThumbnail($modSettings['gallery_path'] . $filename, $modSettings['gallery_thumb_width'], $modSettings['gallery_thumb_height']);
unlink($modSettings['gallery_path'] . 'thumb_' . $filename);
rename($modSettings['gallery_path'] . $filename . '_thumb',  $modSettings['gallery_path'] . 'thumb_' . $filename);
}
else
{
//For 1.0.x
unlink($modSettings['gallery_path'] . 'thumb_' . $filename);
generateThumbnail($modSettings['gallery_path'] . $filename, $modSettings['gallery_path'] . 'thumb_' . $filename, $modSettings['gallery_thumb_width'],  $modSettings['gallery_thumb_height']);

}

Is the line causing the issue the one that starts with rename?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Regenerate Thumbs
« Reply #2 on: April 15, 2008, 07:26:49 pm »
First thing is I would check their error log for the forum sounds like it is a permissions issue or for some reason it is failing to rename the files. The functions are located in Sources/Gallery.php file.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline mashby

  • Jr. Member
  • **
  • Posts: 81
    • View Profile
    • ChopPix.com
Re: Regenerate Thumbs
« Reply #3 on: April 15, 2008, 07:30:37 pm »
rename(gallery/0/4_14_04_08_6_37_34.jpg_thumb,gallery/thumb_0/4_14_04_08_6_37_34.jpg) [<a href='function.rename'>function.rename</a>]: No such file or directory

I edited that error code above to protect the innocent. I don't have a thumb_0 directory. /gallery is set to 755, too.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Regenerate Thumbs
« Reply #4 on: April 15, 2008, 07:35:22 pm »
Going to check code one sec
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Regenerate Thumbs
« Reply #5 on: April 15, 2008, 08:23:38 pm »
1.3.19
!Fixed a bug with regenerating thumbnail sizes if are you using the multiple folders for storage option.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline mashby

  • Jr. Member
  • **
  • Posts: 81
    • View Profile
    • ChopPix.com
Re: Regenerate Thumbs
« Reply #6 on: April 15, 2008, 08:33:54 pm »
You, sir, are a marvelous person! Thanks!

 

Related Topics

  Subject / Started by Replies Last post
3 Replies
4472 Views
Last post April 04, 2008, 10:02:48 am
by stigmartyr
3 Replies
3657 Views
Last post February 24, 2008, 07:49:24 pm
by SMFHacks
6 Replies
5982 Views
Last post March 23, 2010, 04:25:25 pm
by Pegasys
3 Replies
4303 Views
Last post June 18, 2011, 06:25:32 pm
by SMFHacks
9 Replies
934 Views
Last post August 22, 2021, 09:48:37 am
by replayuk

+- Recent Topics

No thumbnails on new uploads by Tonyvic
Today at 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal