vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   manipulating image attachment (https://vborg.vbsupport.ru/showthread.php?t=113754)

fneumeier 04-22-2006 11:48 AM

manipulating image attachment
 
I'm looking for the place in the code where I can manipulate an image/file when a user attaches it to a posting.

Not being a PHP geek, even with some hours of searching in the code I couldn't find the right place to do this. There are just so many "if"s and obscure (at least to me) variables in the code that I can't find how to address this and where to address this. Pleeease, help!

What I want to do is something that many other users have asked for before and it's extremely simple to do as soon as I know WHERE to do it: I want to resize attached images automatically to a pre-given size, e.g. resizing them so they are not bigger than 600x600 pixel. And no, I do not want my users to resize the pictures before uploading them, I really want to do this on the server automatically (using GDlib) when they upload right after they've uploaded the image file.

Thanks a lot.
Franz

cannabis-world 04-24-2006 02:10 AM

I'm looking for a way to remove the exif data from attachments on the fly, as they are uploaded. I understand this can be done by reducing the color depth but I like fneumeier don't know how to do this.


All times are GMT. The time now is 01:13 AM.

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.00982 seconds
  • Memory Usage 1,705KB
  • 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
  • (2)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