VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: tread77 on January 24, 2013, 21:09:40 PM

Title: [Solved] Thumbnails not resizing- no visible resized folder
Post by: tread77 on January 24, 2013, 21:09:40 PM
I need some help.  I have 19k items on my site. 

I do not have a folder called "resized" under products that i can delete as suggested in other posts. 

When I add one it disappears.  I cannot get my 19k existing thumbnails to reset their size without manually using the replace thumbnail option in the listing itself. 

I am using the latest VM2
Title: Re: No thumbnails on 19k items
Post by: PRO on January 24, 2013, 22:30:03 PM
Quote from: tread77 on January 24, 2013, 21:09:40 PM


I do not have a folder called "resized" under products that i can delete as suggested in other posts. 

When I add one it disappears. 



???


what do you have set for the "product media url" in vmart configuration???


Title: Re: No thumbnails on 19k items
Post by: tread77 on January 24, 2013, 22:33:58 PM
/home/proverbs/public_html/images/stories/virtuemart/product/ :: Writeable
/home/proverbs/public_html/images/stories/virtuemart/product/resized/ :: Writeable

When I add a directory in the product folder it is ok.  When I rename it to "resized" it disappears every single time. 
Title: Re: No thumbnails on 19k items
Post by: tread77 on January 25, 2013, 15:52:57 PM
So why does the resized folder disappear?  I have tried changing the permissions.  The products folder is 777 and won't allow me to change it to 755. 

Using firebug I can see the images are stored in that location but I don't see the folder in my FTP file manager at all.  I upgraded to the latest vmart 2.x and still have the error.
Title: Re: Thumbnails not resizing- no visible resized folder
Post by: Milbo on January 25, 2013, 18:06:25 PM
Either there is a big misunderstanding of the relative urls, or your hoster is strange. I have absolutly no real idea
Title: Re: Thumbnails not resizing- no visible resized folder
Post by: jenkinhill on January 25, 2013, 18:38:21 PM
Quote from: tread77 on January 25, 2013, 15:52:57 PM
  I have tried changing the permissions.  The products folder is 777 and won't allow me to change it to 755.

No directory should ever need 777 permissions unless you are inviting all hackers in!  If you cannot change it then check the directory & file ownerships as you may need to CHOWN the lot. As Milbo suggests it really does sound like a host issue
Title: Re: Thumbnails not resizing- no visible resized folder
Post by: PRO on January 25, 2013, 18:52:15 PM
tread77,

if you can figure out  the folder issue, creating the thumbs isnt hard (even thousands at a time)
Title: Re: Thumbnails not resizing- no visible resized folder
Post by: jjk on January 25, 2013, 19:08:48 PM
Just to give you an idea what the standard image paths look like in VM2 configuration - see screenshot below.
Does your Joomla Administrator  'Site - System Information - Directory Permissions' show everything in green (writable)?
A nice tool if you really need to change permissions yourself is 'extplorer', a component which is available in the Joomla extensions directory.



[attachment cleanup by admin]
Title: Re: Thumbnails not resizing- no visible resized folder
Post by: tread77 on January 29, 2013, 15:41:18 PM
Issue was sheer size of the folder with 19k thumbnails and several sizes. 
Title: Re: [Solved] Thumbnails not resizing- no visible resized folder
Post by: dylanphelan on May 30, 2013, 17:57:55 PM
I have a similar issue.

Last night i wanted to increase the size of my thumbnails.

I thought that if i deleted the contents of the /resized folder, then new thumbnails would be created.

I deleted the contents, but then all my thumnails disappeared. I eventually found that a new thumbnail was only create when i went into the product details and next to 'USED THUMB URL' deleted the url such as images/stories/virtuemart/product/resized/oscar_220x220.jpg

If i deleted that url then click on save, a new thumb appeared.

how can you create new thumbs without having to do this?
Title: Re: [Solved] Thumbnails not resizing- no visible resized folder
Post by: jjk on May 30, 2013, 18:12:17 PM
Normally they will be recreated if 'Enable Dynamic Thumbnail Resizing?' is enabled in VM2 configuration - after clicking on 'Save' in the VM configuration.
Title: Re: [Solved] Thumbnails not resizing- no visible resized folder
Post by: dylanphelan on May 30, 2013, 20:29:05 PM
Hi, yes i understand that. I have 'enable dynamic thumbnail re-sizing' enabled.

My issue is like what the original poster said though: If i delete images in the /resized folder - they are not automatically recreated.

It is only when i clear the 'USED THUMB URL'  field and click on save that they are recreated.

I need to be able to resize all my thumbnails in one go.
Title: Re: [Solved] Thumbnails not resizing- no visible resized folder
Post by: jjk on May 30, 2013, 21:50:47 PM
Just tested it with a fresh VirtueMart installation (I always disable the thumbnail creation on my own websites, because I prefer to do that with an image editor).
To make shure that VirtueMart recognized all your full images, you can click on 'Tools' > 'Tools & Migration' > 'Synchronize media to Virtuemart' first.

The best way to recreate all thumbnails seems to be to 'Enable Dynamic Thumbnail Resizing' with the desired dimensions (if you like, you could enter i.e. a width value only, in order to keep the aspect ratio), click on 'Save' and then go to 'Shop' > 'Media Files' in the VM administration menu. When you open the 'Media Files' view, the thumbs should be recreated.
Title: Re: [Solved] Thumbnails not resizing- no visible resized folder
Post by: dylanphelan on May 30, 2013, 23:59:28 PM
Thanks - I'll try it that way next time I need to change sizes.
Title: Re: [Solved] Thumbnails not resizing- no visible resized folder
Post by: Milbo on June 03, 2013, 22:49:59 PM
The version 2.0.21C is exactly addressing this problem. There is now an extra tool in the BE in "Tools". there you can delete your old thumbnails, set a new size and they are recreated on the fly.