vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Is there an SQL query I can run that can do this? (https://vborg.vbsupport.ru/showthread.php?t=59456)

MaDCaT75 12-31-2003 02:24 AM

Is there an SQL query I can run that can do this?
 
Is there an SQL query that I can run that will turn ALL images that are over say 640 x 480 into thumbnails about 150 x 150? Some images are messing up my forum format.

Dean C 12-31-2003 11:34 AM

Well not a query as such. You'd need the GD library along with PHP script to loop through all the attachments to do it. But still that would not fix the [img] tag problem.

Xenon 12-31-2003 01:57 PM

there was a hack out there, which resizes images over a certain resolution.
ok, it just uses html resize, so you won't save bandwith, but at least the forumdesign would fit again :)

Dean C 12-31-2003 02:08 PM

You could always change postbit_attachmentimage to have width and height attributes in the img tag too

filburt1 12-31-2003 02:23 PM

Remember that modifying the image tag to use resizing HTML code may result in a destroyed aspect ratio and terrible quality. Also the file size itself will be the same.

MindTrix 12-31-2003 03:49 PM

Im pretty sure there are numerous hacks here for images, either it be to restrict the size of attached images, restrict the size of linked images etc etc

This hack limits the size of uploaded images

https://vborg.vbsupport.ru/showthread.php?t=59410

And there are other links in the thread.


All times are GMT. The time now is 11:15 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01687 seconds
  • Memory Usage 1,713KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete